I am ASSERTing at the following spot in extgridwnd.cpp:
pApp->LoadCursor( MAKEINTRESOURCE( IDC_EXT_RESIZE_H1 ) );
ASSERT( m_hCursorResizingH != NULL );
This occurred when I changed my project to link statically and have followed all the directions in doing so:
- I added the following code to my .rc2 file:
#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
- I added the ..\prof-UIS\Include folder to the Additional Include Directories option of the resources project properties
- I added __STATPROFUIS_WITH_DLLMFC__ to both the C/C++ preprocessor definitions and the resource preprocessor definitions.
I have just done this same process to another project that also uses a gridwnd and it works fine. So the question is: what other things can cause this assertion?
I don’t know if this matters, but the project that works fine is an SDI app while the project with the issues is an MDI app.