Using Managed dlls from Native C++

H

Hector Y. Martinez

Hi, I have some questions...

What are the posibles methods to use a managed dll from C++, and where i
can find information and samples about that...

I can have a dll made in NET that have classes derived from
Windows.Forms.Form or others controls and call them from Native C++, I mean,
If I can develop the windows form in NET and then use then from Native C++

How can I made a windows form developed in C++ using MFC look like Vista,
I mean modern look like.

Regards, and thanx in advance.

Hector
 
W

William DePalo [MVP VC++]

Hector Y. Martinez said:
What are the posibles methods to use a managed dll from C++, and where
i
can find information and samples about that...

There are at least a couple of things you can do.

One is to use the Register Assembly (regasm.exe) utility to register an
assembly as a COM component. Then you can use the compiler's #import
capability to access the component as though it were as C++ class.

Another thing you can do is to take advantage of the C++ compiler's ability
to mix-and-match native and managed code in the same application or even the
same module.

I have videos on both techniques here:

http://msdn2.microsoft.com/en-us/visualc/bb892741.aspx

http://msdn2.microsoft.com/en-us/visualc/bb892742.aspx
How can I made a windows form developed in C++ using MFC look like
Vista,
I mean modern look like.

If no one responds here, you can post again in a UI group, e.g.

microsoft.public.win32.programmer.ui

Regards,
Will
 
H

Hector Y. Martinez

hello William Thanx for help, but I can´t donwload the videos, proxy
limitations, then I'll like to know if you have links with information about
this two point, just in text and sample code...

Regards, Hector
 
W

William DePalo [MVP VC++]

Hector Y. Martinez said:
Thanx for help,

You are welcome.
then I'll like to know if you have links with information about
this two point, just in text and sample code...

Did you browse the pages whose links I posted? Both have "Download the code"
hyperlinks.

You'll find more information on the two techniques at the MSDN website by
searching for

REGASM

and

C++ Interop

Regards,
Will
 

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