How to wrap MFC control in C++/CLI
-
Hello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.
Birch Howe wrote:
Can anyone give an hand?
Look at the Articles here on CodeProject on the subject C++/CLI (look in the menu bar on the side of the page under "Chapters"). There is nothing specific about wrapping MFC other than any compiler/linker settings one might need and of course the dependency issues on deployment. Otherwise you are just wrapping a Native C++ class in a managed C++/CLI class.
led mike
-
Hello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.
Hello, I think Nishant Sivakumar's book "C++\CLI in action" talks about this specific topic in "6.6 Using an MFC control in a Windows Forms form" titled chapter. I've not tried yet... but i hope this helps.