Print Page | Close Window

Resource DLL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9660
Printed Date: 14 November 2025 at 7:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resource DLL
Posted By: Kenneth
Subject: Resource DLL
Date 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?



Replies:
Posted By: znakeeye
Date 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.


Posted By: Kenneth
Date 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.


Posted By: Oleg
Date 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



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