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 » __EDMT_2005_TOP Collapse All
Subject Author Date
Nick Torkos Apr 7, 2006 - 6:43 PM

I get an assert in ProfUIS 2.53 in extpaintmanager.cpp, line 23028 function CreateFromBitmapResources()

The eDockMarkerType is __EMDT_2005_TOP. I’m guessing that I’m missing resource information somehow.
The software I am using was built on an older version of profuis, version 2.50. Has anything changed that I should be aware of?

NT

Nick Torkos Apr 7, 2006 - 8:23 PM

I think this is related to the __EXT_PROFUIS_STATIC_LINK_WITH_RESOURCES flag.
Also, I noticed my profuis project had no resource files. My guess is that its trying to draw the bitmaps for docking but can’t.

NT

Nick Torkos Apr 7, 2006 - 6:56 PM

Just to add, I’m getting the assert when dragging the windows.

Technical Support Apr 9, 2006 - 8:03 AM

We guess you forgot to add the following lines into the .rc2 file of your project:

#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
    #include <Resources/Resource.rc>
#endif
This is also described in the FAQ How to link statically with Prof-UIS?.

Nick Torkos Apr 10, 2006 - 10:45 AM

I think the previous version of profuis I had, used internally defined globals for resources. They were no longer active in the current release. I tried commenting out __EXT_PROFUIS_STATIC_LINK_WITH_RESOURCES but then got a compile error ... something wasn’t defined in on of the files (some global).

Putting the lines you suggested didn’t work, I’m not sure why. However putting #include <Resources/resource.rc> by itself seemed to work fine.
As a side note, a new project created with the wizard also asserted during dragging. Would I have to include this in every project I create from now on?

NT

Technical Support Apr 10, 2006 - 11:30 AM

When __EXT_PROFUIS_STATIC_LINK_WITH_RESOURCES is commented, you cannot use some resource dependant features such as customization in static builds. In this case, you will encounter compile errors.

Please follow the steps described in the FAQ we mentioned above. All our samples have the following lines in their *.rc2 files:

/////////////////////////////////////////////////////////////////////////////
// Add manually edited resources here...
 
#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
 #include <Resources/Resource.rc>
#endif