I have a problem with dialog and icon resources in my static library. I have created a MFC static library with Visual Studio 2008.
I am calling Func()
in the static library from Win32
application, It tries to launch a MFC dialog in the static library.
When trying to access the resource I am getting afxCurrentResourceHandle is NULL assertion.
I add this line AFX_MANAGE_STATE(AfxGetStaticModuleState());
in the Func()
as the first line. But it didn't help.
I need to use only static library. As per requirement, I should not use dll.
Please help me how to launch a dialog in MFC static library from a non MFC application.