Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Assert Hell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assert Hell

 Post Reply Post Reply
Author
Message
Ocrana View Drop Down
Groupie
Groupie


Joined: 20 November 2007
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ocrana Quote  Post ReplyReply Direct Link To This Post Topic: Assert Hell
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2011 at 10:42am
Hi,

Call XTPOffice2007Images()->SetHandle(..) instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ocrana View Drop Down
Groupie
Groupie


Joined: 20 November 2007
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ocrana Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2011 at 6:59am
Hi Oleg,

many thanks, this works well!

Ocrana
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.