I have native c++ dll, header file and lib file. I want to create managed wrapper of it. I do not have source code of dll. How Can I call/used that in C# or C++ Managed code. Here is header file
Thanks, Adil
I have native c++ dll, header file and lib file. I want to create managed wrapper of it. I do not have source code of dll. How Can I call/used that in C# or C++ Managed code. Here is header file
Thanks, Adil
If you've got the dll's header, you can use DllImport
(you can also use it without but i would have been slightly more complicated)
This will allow you to specify a method you'll be able to call in your managed code that will match one of those in the dll.
You'll have a little work to do though, you have to tell the C# compiler which type to use to match the C++ ones