VC6: Too many resources? |
Post Reply |
Author | ||
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
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 |
||
Codejock support
|
||
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
|
"To work around this problem, use numbers to identify resources instead of strings."
http://support.microsoft.com/kb/230332/en-us This should have been fixed with SP6 http://support.microsoft.com/kb/834001/en-us |
||
Codejock support
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
last samples use dlls instead packing all to exe.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
|
I would like to avoid DLLs. Any chance to reduce the footprint of the themes?
|
||
Codejock support
|
||
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
|
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 |
||
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
|
I would like to avoid this.
That's what I do with my resources. Everything in a ZIP file as a resource. |
||
Codejock support
|
||
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
|
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 |
||
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
|
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
|
||
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 |