As I far as I know it is possible to use the P/Invoke on .NET to call native functions from native .dlls created using EVC++. Now my question is whether I can call from the native dll. a method of the .net program, to create a bidirectional communication between 2 programs written one in .net and the other in EVC++. And even more, Can I create a managed .dll with .net and then call it from my EVC++ application?
Many thanks in advance! It is critical for me to know if this is possible.
Best wishes and regards to all!
I have never done this but my understanding is that you need to create a COM wrapper around your .Net component, and then use COM in your unmanaged code to call the wrapper. There are articles in MSDN on the various interop possibilities.
The problem now, is that .NET Compact Framework (which is the platform for mobile devices) does not support interoperability with COM objets. The way to access COM objects is calling native DLLs which in turn can access COM DLLs. So this solution is not viable.
There is almost no information in the web about how to do this, I know that is not a common way to operate...
Thank you very much!
Last Visit: 31-Dec-99 18:00 Last Update: 20-Sep-14 22:46