Dialog resources in a static library

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

I have a problem with dialog and icon resources in my static library.
I have created a static library (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 libraray.

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 libraray from non MFC application?

Continue reading...
 
Back
Top