Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - VC6: Too many resources?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VC6: Too many resources?

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: VC6: Too many resources?
    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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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

This should have been fixed with SP6 Stern Smile

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



Codejock support
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: 15 October 2010 at 7:37am
last samples use dlls instead packing all to exe.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2010 at 8:27am
I would like to avoid DLLs. Any chance to reduce the footprint of the themes?

Codejock support
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
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.