Calling managed component from MFC application

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
 
J

JoeZ

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

Ferdinand Oeinck

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top