Professional UI Solutions
Site Map   /  Register


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 General Discussion » Using paintmanager in static lib Collapse All
Subject Author Date
Jeremy Ruth Dec 13, 2007 - 9:42 AM

I am trying to use the paint manager from a static build of the profuis library. I followed the directions from the "How to link statically with Prof-UIS?" article...

I built the profuis library : profuis264yud.
I added the __STATPROFUIS_WITH_DLLMFC__ directive to my project and built it just fine. In my app’s (mfc exe) InitInstance, I call: g_PaintManager.InstallPaintManager() and it asserts in: extpaintmanager.cpp
at the following piece of code:


Any ideas?

Jeremy Ruth Dec 14, 2007 - 7:46 AM

It seems that whenever any of the Office2007 paintmanagers are used in the g_PaintManager.InstallPaintManager( ... ) line, it asserts. I have not tried all of the non-Office2007 mgr’s, but the ones I have tried seem to work fine. I am using version 2.64. Is this a bug? Does this behavour exist in later releases?

I started over with a brand-new solution using profuis app-wizard (VS2003); dialog based; mfc shared; profuis static; changed to unicode; changed to NOT treat wchar_t as built-in type; added a datepickerwnd to dialog; changed to install one of the office2007 themes in the app’s InitInstance. It built fine, but asserts. Changing the paintmanager to a non-Office2007 mgr and it works fine.

Thank you.

Technical Support Dec 14, 2007 - 6:45 AM

We suspect there must be something wrong with your project settings. So you can either the settings with those of our sample projects or send your test project to us so we can find out what is wrong.

Jeremy Ruth Dec 13, 2007 - 12:06 PM

I had already done that. It made no difference

Technical Support Dec 13, 2007 - 11:41 AM

Please open the .rc2 file of your project and add the following lines into it:

#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
      #include <Resources/Resource.rc>
You can use the .rc2 file in any of Prof-UIS samples to see how to do this.