Calling managed component from MFC application

  • Thread starter Thread starter JoeZ
  • Start date Start date
J

JoeZ

Hi,

Can some one point some samples of calling managed code from unmanaged code.

Here is basically what I need:
I have an MFC application with several MFC dlls, and I have a new .net
component,
I need to find a way to call the .net component from either the application
or from one
of exist MFC dlls.

TIA,

JoeZ
 
That is something definitely I want to skip, if possible. Otherwise I have
to
create a COM component first.
 
Hi JoeZ,

try to search Google for articles about hosting the CLR.
CorBindToRuntimeEx() is a key function in this game...

If I've time this coming winter I will create an example to how exaclty do
this from MFC. In my own MFC app I call C# functions as plugins which
manipulate managed objects I create with my MFC app.

Ferdinand.
 
Back
Top