|
|
|
|
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.
Subject |
Author |
Date |
|
Helen Lee
|
Jun 15, 2011 - 10:53 PM
|
Hi, I’m trying to upgrade a VC6.0 project to VS2010 and replace the menubar and toolbars to Prof-UIS. I created a new small MFC project just to testout the procedure first. However, I keep getting assertions relating to extpaintmanager.cpp at Line 264 ...and all the lines having to validate the following line of code. VERIFY( m_bmpFilterApplied.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_BITMAP_FILTER_APPLIED ) ) ); I know it’s probably somewhere in my setup, something simple, but I just can’t figure out what’s missing. Please help~ \Thanks, Helen
|
|
Technical Support
|
Jun 18, 2011 - 11:08 AM
|
We need a memory DC for clipping. If you need faster text output into a big area, please use the DT_NOCLIP flag.
|
|
Technical Support
|
Jun 16, 2011 - 10:51 AM
|
Did you put the following lines into .rc2 file of your project?
#if ( !(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )
#include <Resources/Resource.rc>
#endif
|
|
Helen Lee
|
Jun 16, 2011 - 7:07 PM
|
Hi, yes I did put those lines already. So far it only works if I compile under MFC static link and static use of Prof-UIS (ProfUIS291sud.lib) or both using dll option (ProfUIS291ud.lib). Is there something extra I need to setup if I want to have dynamic link to MFC but static use of Prof-UIS? In the possible configurations I thought we can use ProfUIS291yud.lib? That’s when I was getting assertion errors. Any ideas?
|
|
Technical Support
|
Jun 18, 2011 - 11:08 AM
|
|
|
Helen Lee
|
Jun 20, 2011 - 4:13 AM
|
I had define __STATPROFUIS_WITH_DLLMFC__ before, the program was trying to pick up ProfUIS291yud.lib which I already compiled. I had no problem compiling but it keeps throwing asserts whenever it goes into extPaintManager.cpp:
VERIFY( m_bmpFilterApplied.LoadBMP_Resource( MAKEINTRESOURCE( IDB_EXT_BITMAP_FILTER_APPLIED ) ) );
I read the article many times before I post my question... just not sure what else I was doing incorrectly.
|
|
Technical Support
|
Jun 20, 2011 - 11:27 AM
|
The problem with an early loaded IDB_EXT_BITMAP_FILTER_APPLIED bitmap resource in the constructor method is solved in Prof-UIS 2.92 where this bitmap is loaded with a delay. Please switch to 2.92.
|
|
Helen Lee
|
Jun 16, 2011 - 1:07 AM
|
I made a little bit of progress by setting static link to MFC with MTd and it works. However, I need to have dynamic link to MFC and use Prof-UIS as static lib, so I should be using ProfUIS291yud.lib, right? I put #define __STATPROFUIS_WITH_DLLMFC__ in the stdafx.h to turn on the ’y’ flag and the compilation went ok, but it would still fail when calling InstallPaintManager. What did I do wrong...?
|
|