Print Page | Close Window

Storing XML/XCB files in Resource FIles?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1853
Printed Date: 28 September 2024 at 11:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Storing XML/XCB files in Resource FIles?
Posted By: ianp
Subject: Storing XML/XCB files in Resource FIles?
Date 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?




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


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




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