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 » Update from v2.54 to 2.85 causes initialization crashes Collapse All
Subject Author Date
Lynn Reid Aug 27, 2009 - 8:31 PM

I just updated from version 2.54 to 2.85 and now I can’t get my programs to run.  (I didn’t want to upgrade, just had a major disk crash and needed source code again d’oh.)


I initialize in MyApp::InitInstance with


     VERIFY(

        g_CmdManager->ProfileSetup(

            __PROF_UIS_PROJECT_CMD_PROFILE_NAME

            )

        );



    g_PaintManager.InstallPaintManager(    RUNTIME_CLASS(CExtPaintManagerXP));



   AfxEnableControlContainer();


The code aborts in the InstallPaintManager command in routine CExtBitmap::LoadBMP_Resource at line

        hInst =

            g_ResourceManager->FindResourceHandle(

                sResourceType,

                (UINT)(__EXT_MFC_UINT_PTR)(LPCTSTR)sResourceID

                );


Any hints as to what I have to do to make this compatible again?  I’ve tried creating a new Prof-UIS project with the wizard and comparing code but I can’t find the key after several hours of attempts.


I’m running Visual C++ 6.0, compiling with MFC in a static library.




many thanks


Lynn

Technical Support Aug 28, 2009 - 1:47 PM

Please take a look at the .rc2 file in any of Prof-UIS sample applications. This file contains the following lines:

#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
      #include <Resources/Resource.rc>
#endif
Please add these lines into the .rc2 file of your project. They needed for including Prof-UIS resources into your compiled application.