Print Page | Close Window

VC6: Too many resources?

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=17431
Printed Date: 25 May 2024 at 7:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VC6: Too many resources?
Posted By: ABuenger
Subject: VC6: Too many resources?
Date Posted: 15 October 2010 at 6:58am
Modify the Ribbon sample rc2, and include 5 styles:

#include "Styles\Office2007Blue\Office2007Blue.rc"
#include "Styles\Office2007Aqua\Office2007Aqua.rc"
#include "Styles\Office2007Black\Office2007Black.rc"
#include "Styles\Office2007Silver\Office2007Silver.rc"
#include "Styles\Office2007White\Office2007White.rc"

cvtres.exe crashes during compilation of the resources Confused



-------------
Codejock support



Replies:
Posted By: ABuenger
Date Posted: 15 October 2010 at 7:19am
"To work around this problem, use numbers to identify resources instead of strings."

http://support.microsoft.com/kb/230332/en-us - http://support.microsoft.com/kb/230332/en-us

This should have been fixed with SP6 Stern Smile

http://support.microsoft.com/kb/834001/en-us - http://support.microsoft.com/kb/834001/en-us





-------------
Codejock support


Posted By: Oleg
Date Posted: 15 October 2010 at 7:37am
last samples use dlls instead packing all to exe.

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


Posted By: ABuenger
Date Posted: 15 October 2010 at 8:27am
I would like to avoid DLLs. Any chance to reduce the footprint of the themes?



-------------
Codejock support


Posted By: jimmy
Date Posted: 15 October 2010 at 8:53am
Hello,

You can add the DLL to your executable.
If you need one, extract it to the temp directory, and use it.

  Jimmy

or wish follow solution.
pack all png + ini file into a zip file. Add this to executable.
XTPOffice2007Images()->LoadFromZIP( LPCTSTR lpResourceID);

  Jimmy





Posted By: ABuenger
Date Posted: 15 October 2010 at 9:12am
Originally posted by jimmy jimmy wrote:


You can add the DLL to your executable.
If you need one, extract it to the temp directory, and use it.


I would like to avoid this.


Originally posted by jimmy jimmy wrote:


pack all png + ini file into a zip file. Add this to executable.
XTPOffice2007Images()->LoadFromZIP( LPCTSTR lpResourceID);


That's what I do with my resources. Everything in a ZIP file as a resource.



-------------
Codejock support


Posted By: jimmy
Date Posted: 15 October 2010 at 9:31am
Hi,

Now CJ put (compile) all files into a DLL.
Why not pack all this files to a zip file.
And add this zip file the a executable. And load
styles instead of a DLL from the zip file in the resources.

  Jimmy



Posted By: ABuenger
Date Posted: 15 October 2010 at 10:43am
Originally posted by jimmy jimmy wrote:

Hi,

Now CJ put (compile) all files into a DLL.
Why not pack all this files to a zip file.
And add this zip file the a executable. And load
styles instead of a DLL from the zip file in the resources.

  Jimmy



You can't load a DLL from memory without doing some crazy hijacking which doesn't work under Vista anymore.

Do you mean to put the PNG + INI files into a ZIP? That would work.
CXTPOffice2007Images needs support for ZIP resources.



-------------
Codejock support



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