Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Resource DLL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resource DLL

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: Resource DLL
    Posted: 21 February 2008 at 12:41pm
If an application uses a resource dll, and needs to add support for the Office 2007 theme, can the:
 
#include "Styles\Office2007Blue\Office2007Blue.rc"
 
be added to the resource dll, or must be be added to the applications .rc2 file?
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2008 at 2:38pm
HINSTANCE hResDLL = LoadLibrary("Resource.dll");
CMainFrame::CMainFrame()
{
    XTPSkinManager()->GetResourceFile()->SetModuleHandle(hResDLL);
    XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));
}
 
Something like that.
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2008 at 2:46pm
I wish we could use LoadSkin, however our applications use unicode/unicows and the Armadillo protection package, which breaks the Codejock Skin stuff.
 
However, in our case, we can use the normal theme logic, but it requires us to use the:
 
#include "Styles\Office2007Blue\Office2007Blue.rc"
 
in our applications .rc2 file. 
 
Since we have several applications that use a common resource dll, it would make more sense (and save memory) to place the Office2007Blue.rc stuff in the resource dll.  However, we cannot get it to work for some reason.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 21 February 2008 at 3:13pm

Hi,

 
You need specify ini file:
 
XTPOffice2007Images()->SetHandle(hModule, _T("OFFICE2007BLUE.INI"));
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.