#include <winnt.h>
#define ASDF "MyProduct"
STRINGTABLE
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
BEGIN
1001, ASDF "is the best product in the world."
END
where the final result would be that string resource would have the
value: "MyProduct is a product."
I wan to customize my resource files for different products or
different text without duplication of hundreds of lines. That way, I
change the #define from "MyProduct" to "OtherProduct" for product two,
and so on and so on... <g>
I tried ## to concat but that only works in the #define directive and
not in the stringtable...
Thanks for any thoughts or suggestions!
Tom
"PeterD" <pet...@hipson.net> wrote in message
news:rjjbj3pj5p2deguks...@4ax.com...
>I don't know of a way to do that in a .rc file, but you could certainly do
>it in code easily by just using two adding to a CString. I would tend to
>use a FormatMessage() and put %1 in for the product name. That way when you
>localize you can move the %1 to after the text if the language calls for
>that.
>
>Tom
>
>"PeterD" <pet...@hipson.net> wrote in message
I didi end up doing it in code, but I'd hoped that I could have stuck
it in the RC file... Oh, well, that's life.
Tom
"PeterD" <pet...@hipson.net> wrote in message
news:d7bjj393r8vis9e8v...@4ax.com...