473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Dynamic Strings in VS2005 RC String Table

2
Our product is one that is branded for each customer that we sell to. Given that, the name of our product is contained within numerous strings in our string table.

Is there a way to have the RC file use a predefined variable in place of our product name such that the product name can be specified at build time?

I would like to avoid having to use a format specifier and formatting each string before loading as there are areas where that is not possible.

Any ideas?

Our solution contains multiple projects and is C++-based.
Jul 6 '07 #1
3 3431
weaknessforcats
9,208 Expert Mod 8TB
Programs can have more than one string table.

I suggest you have a string table for each customer with that customer's unique strings.

You use another string table for the strings that are common to all customers.

On a build, you just add the correct customer resource to the build and off you go.

I am assuming you know how to operate the string editior in Visual C++.
Jul 6 '07 #2
sundip
2
Understood.

Though, in general, is there a way to use variable names and strings with resource definition values like CAPTION, LTEXT, etc?
Jul 6 '07 #3
weaknessforcats
9,208 Expert Mod 8TB
Of course. The string table editor (you said you kneo how to use this) has:

an ID a value and a caption. You use the ID in your code. This becomes a value before the compiler gets to it. At run time the value is looked up in the string table and the caption is retreived.

IDS_LTEXT 123 Mom, I wanta come home!

If you don't want to use the resource file or the string table editor you can do it by hand.
Jul 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: meyousikmann | last post by:
I am having a little trouble with dynamic memory allocation. I am trying to read a text file and put the contents into a dynamic array. I know I can use vectors to make this easier, but it has to...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
5
by: swarsa | last post by:
Hi All, I realize this is not a Palm OS development forum, however, even though my question is about a Palm C program I'm writing, I believe the topics are relevant here. This is because I...
8
by: Eyeawanda Pondicherry | last post by:
I have put some code together that creates an enum dynamically from some database values. The enum can be read perfectly by an application that references the dynamically generated dll. If I...
1
by: stewart | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the...
3
by: ad | last post by:
I have a web application which refer a class library project. The web application have a web.config and the class library project have a app.config. They all have connection string defined in...
4
by: mark.olszowka | last post by:
I am writing a generic property table as part of my application property_name property_type property_value All information is stored in the database as strings. In my application that...
1
by: george | last post by:
Hi, I have an app that takes data from a db and maps it to a CSV file. There are multiple maps for different customers which has different formatting rules. For example, some customer wants...
3
by: RavindraB | last post by:
I am migrating C++ code to VS2005, for this i have to replace the some Deprecated CRT Functions like “strcpy” by strcpy_s I have written template to replace the function call. For strcpy_s I need...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.