Posted By: brussell | Sep 16th, 2005 @ 7:48 AM
page 1 of 1
Comments: 5 | Views: 4574
I am trying to take old MFC code and use it in a C++.NET container.
If I have all the code in the same project, I get an error about delete being defined twice if I #include "afx.h" so that I can use DWORD[] and such.

How do I get this to work?
Or do I make the MFC code a DLL and include it? If so, how do I do that?
Maurits
Maurits
AKA Matthew van Eerde

brussell wrote:
Or do I make the MFC code a DLL and include it? If so, how do I do that?

You can wrap .dll's in a .NET construct with tlbimp and ildasm

Maurits
Maurits
AKA Matthew van Eerde
Have you tried making a dbBuilder_dotnetproxy.dll along these lines
page 1 of 1
Comments: 5 | Views: 4574