user controls - How do I call C++/CLI (.NET) DLLs from standard, unmanaged non-.NET applications? -


In the unmanaged world, I was able to write a __declspec (dllexport) or, alternatively, use to expose the .DEF file. In order to be able to call DLL, a function (for __stdcall in C ++ Due to the name, I had put LIS in the .DEF file, so some applications could reuse some export DLL functions.) Now, let me create a single entry-point function in a .NET assembly, unmanaged-fashion But i From the DLL in the .NET-style function. Is it possible in a simple and straight-forward fashion?

I have a third party program that I have expanded through DLLs (plugins) which implements some complex mathematics. However, to calculate, I have no point in third party programs. I want to compile pre-written mathematics works in a different DLL (but using C ++ / CLI in some way), but to add hooks to the function, so that I get under a hood in a .NET I'm going User Control I'm not sure that with unmanaged stuff. How to cover NET content, or what to do to Google to accomplish this task.

Specific suggestions for managing / unmanaged bridges, or alternate ways to complete the rendering will be useful in the way I have described Thank you.

Do you use C ++ / CLI because you want to, or because you think That you export jobs?

In the latter case, investigate me, which allows you to declare unmanaged exports in C # similar to how Deliemport works.

  Internal class sample {[DllExport ("_ export_test", Calling Convention. CDCL)] Stable Int Test (Int A) {Return A + 1; }}  

Comments