Mixing unmanaged code with Managed code.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have VC++ project that is unmanaged. I would like to build components like
user interface dialog boxes in VB .net and call them from the unmanaged VC++
application. Is this possible? Before .net I would have done this with an
activex object or com object. Any suggestions would be appreciated.

George McLean
 
gmclean said:
I have VC++ project that is unmanaged. I would like to build components like
user interface dialog boxes in VB .net and call them from the unmanaged VC++
application. Is this possible? Before .net I would have done this with an
activex object or com object. Any suggestions would be appreciated.



I guess what you will have to do is to save the VB .NET stuff in one or
more dlls and use that .dll in your VC++ project, which as a consequence
will not be completely unmanaged, that is it will be in mixed mode
(everything compiled with /clr).
 
gmclean said:
Thanks for your help. I think this will get me started.


Now unless you have VS 2002, why not use VC++ since the beginning? They
share the same RAD.
 
Ioannis said:
Now unless you have VS 2002, why not use VC++ since the beginning? They
share the same RAD.


Meaning why not build those UI components in C++ using .NET directly.
 
Back
Top