Using unmanaged code in a C++/CLI WinForm

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have an application that is built from an unmanaged C++ code console app and I wish to use it in a C++/CLI WinForm project.  Since the Main form is a managed type, how do I use the functions and two other unmanaged classes in the application.  Since the Main Forms instance is on a managed heap, I think this is why I get no data returned back from my other unmanged functions and classes because they are on seperate heaps.<br/> <br/> Without having to scrap it and rewrite all to managed code, is there a way to save what I have without having another layer in the form of a wrapper?<br/> <br/> Thanks in advance<hr class="sig Jer 29:11

View the full article
 
Back
Top