Using Windows Forms in an unmanaged DLL

  • Thread starter Thread starter Rubio
  • Start date Start date
R

Rubio

I have lot's of old DLLs (C++/MFC) in which I'd like to use Windows
Forms (MC++). From what I've read, this should be possible when the
project is in mixed mode. What I don't know is how, and a pretty
thorough search through the MSDN was not fruitful. Does anyone know
any good resources on the subject. A sample would be great.

Thanks,
-- Rubio

PS. Turning all the DLL projects entirely to managed code is not an
option, because the client that uses the DLLs is not managed, and
getting the interop to work would require too much work.
 
Rubio said:
...
PS. Turning all the DLL projects entirely to managed code is not an
option, because the client that uses the DLLs is not managed, and
getting the interop to work would require too much work.

managed C++ can directly export managed functions to unmanaged code - you
won't need any interop for that, just change your compiler options.

Niki
 
managed C++ can directly export managed functions to unmanaged code...

How? Even extern "C"? I couldn't find anything about that in MSDN.

-- Rubio
 
Back
Top