Thursday, September 26, 2013

Property page issue!

In vs2010, the building of a blank project, in which I have written to establish a window; program's properties page, property pages -> Configuration Properties -> General to use the standard Windows library, but I want to call the MFC series dll in the function, so I changed it in a shared DLL using MFC, but then, when you create a window on the wrong! Run to if (! PThread-> InitInstance ()) when the interrupt;
/ / Perform specific initializations
if (! pThread-> InitInstance ())
{
if (pThread-> m_pMainWnd! = NULL)
{
TRACE (traceAppMsg, 0, "Warning: Destroying non-NULL m_pMainWnd \ n");
pThread-> m_pMainWnd-> DestroyWindow ();
}
nReturnCode = pThread-> ExitInstance ();
goto InitFailure;
}
Heroes know!

No comments:

Post a Comment