Friday, March 07, 2008

prob using afxdisp.h /MFC use/ CLR support - GIDForums

prob using afxdisp.h /MFC use/ CLR support - GIDForums:
"To compile an MFC executable or regular DLL with /clr

Open the Project Properties dialog by right clicking the project in the Solution Explorer and selecting Properties.

Expand the node next to Configuration Properties and select General. In the right pane, under Project Defaults, set Common Language Runtime support to Common Language Runtime Support (/clr).

From the same pane, make sure Use of MFC is set to Use MFC in a Shared DLL.

Under Configuration Properties, expand the node next to C/C++ and select General. Make sure Debug Information Format is set to Program Database /Zi (not /ZI).

Under Configuration Properties, select C/C++ and then Code Generation. Make sure Runtime Library is set to one of Multi-threaded Debug DLL (/MDd) or Multi-threaded DLL (/MD)."

No comments:

Post a Comment