Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Storing XML/XCB files in Resource FIles?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Storing XML/XCB files in Resource FIles?

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: Storing XML/XCB files in Resource FIles?
    Posted: 24 February 2005 at 3:18pm

I'm trying to limit the number of files distributed with my app, and already have resource file which stored most of the strings used by the app which are implementation specific.

Since the commandbars require an XML/XCB file whose configuration varies with each implementation, I am trying to save the XML string to the resource file, however...

My XML file is now 120kb and the XCB file is 60kb. When I tried pasting the XML file into a VB6 resource string, it gets truncated. Does anyone know if this is a VB limit, or would another resource editor be able to handle the large file? If so can you name a good, preferably cheap, resource editor?

Alternatively, can the XCB file be stored in the resource file? If so, is there a good way to do so?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2005 at 3:22pm
If you use the XML file and serialize the images there is no need for the XCB file.  It is redundant to include both of them when you can just have the XML file.  You might be able to break the string up into smaller string and reassemle them, or maybe just hard code it into the app once right before your release.
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2005 at 3:31pm

Hi supermario - you're on the ball today!!!

I only plan to distribute either the XML or the XCB. The XCB has the benefit of being smaller.

As the app needs to grow and change rapidly, we are trying to avoid hardcoding potentially changable items. The commandbars, in the short-term will ceertainly change as we add new modules.

Perhaps i'll save the xml string in the central database

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.125 seconds.