Hi guys + girls,
This is my second post on the forum. Finding it useful, not been programming with C++ for too long, although am not new to programming in general.
Okay...
There is a C++ DLL, Header file and Library. I have been using these within my win32 native C++ projects fine.
I want to create a wrapper so I can use/call certain functions from a managed language.
Am I thinking along the right lines with this whole concept (bearing in mind I do not have access to the original DLL's source...)
1) Create a new C++ DLL project that uses the original DLL and calls functions like the win32 app does. Create methods which do what require using the origna DLL methods.
2) Create these methods in a way that they can be exported.
3) Then create a .Net project and use the DLL created above, calling functions from it that go away and do the business and simply return back things of importance back.
So it would look a little like this:
API DLL
getSomething ();
doSomething ();
createSomething ();
My DLL
__declspec(dllexport) myMethod {creatSomething (), doSomething ()}
.NET
myMethod ();
Am I along the right lines?