Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » AfxGetResourceHandle() Assert Collapse All
Subject Author Date
2C|!2C Apr 15, 2008 - 1:39 PM

When I create a project with Prof-UIS integration ( using the wizard ) add a MfcExtensionDLL and call in the DLL

AfxGetResourceHandle()  I get an assertion error and a "0" handle back.



_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle

 

 

 

 

() { ASSERT(afxCurrentResourceHandle != NULL); return afxCurrentResourceHandle; }

 


If I do the same project without Prof-UIS integration is works perfectly. Is there any reason why this standard call is not working 


with Prof-UIS ?  The additional 3d party DLLs I have to use with this project are using those calls and I have no way changing them.



Any help is appreciated


 

Technical Support Apr 16, 2008 - 5:11 AM

Prof-UIS uses its own resource loading subsystem which does not intersect with MFC’s. Could you please send us just some generated EXE/DLL projects which demonstrate this problem to the support mail box at this web site or provide us with more details about how to reproduce this problem? Which version of Visual C++ should we use? Which type of EXE project should we generate (dialog or frame based) and where is the place in it where we should invoke an MFC extension DLL?