Print Page | Close Window

Assert Hell

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18330
Printed Date: 28 November 2024 at 6:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assert Hell
Posted By: Ocrana
Subject: Assert Hell
Date Posted: 06 May 2011 at 4:03am
Hello,
I tried to load ribbon resources from external DLL. But the only thing I got is no ribbon theme or a assert hell. I tired (Your RibbonSample):

Assert Hell, unable to debug the software because 6 or more Debug asserts will pop up:

pCommandBars->SetTheme(xtpThemeRibbon);

HMODULE hModule = LoadLibrary(m_csStylesPath + _T("Office2007Blue.dll"));
((CXTPOffice2007Theme*)pCommandBars->GetPaintManager())->SetImageHandle(hModule,m_csStylesPath + _T("Office2007Theme.ini"));

No Ribbon theme:

HMODULE hModule = LoadLibrary(m_csStylesPath + _T("Office2007Blue.dll"));
((CXTPOffice2007Theme*)pCommandBars->GetPaintManager())->SetImageHandle(hModule,m_csStylesPath + _T("Office2007Theme.ini"));

pCommandBars->SetTheme(xtpThemeRibbon);


Please give me a hint to avoid to add the rseoruces to the rc2 file and to load it handy from the resource DLL. I do not see any sense into link the rc2 file and to distribute the DLL resource files, too.

Thanks,

Ocrana



Replies:
Posted By: Oleg
Date Posted: 06 May 2011 at 10:42am
Hi,

Call XTPOffice2007Images()->SetHandle(..) instead.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ocrana
Date Posted: 07 May 2011 at 6:59am
Hi Oleg,

many thanks, this works well!

Ocrana



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net