Assert Hell |
Post Reply |
Author | |
Ocrana
Groupie Joined: 20 November 2007 Status: Offline Points: 32 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Call XTPOffice2007Images()->SetHandle(..) instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Ocrana
Groupie Joined: 20 November 2007 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
Hi Oleg,
many thanks, this works well! Ocrana
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |