Manually adding resources to rc2 file
-
I need to add a string resource manaully to the .rc2 file in an MFC project, so did this (copying from the syntax in .rc file): STRINGTABLE BEGIN IDS_THESTRING "really long string here.." END and with a define inside resource.h: #define IDS_THESTRING 101 This compiles but the strings defined in the normal .rc file (that are edited through the string table editor in VS) are no longer valid, any attempt to reference them fails. Is this the correct syntax for manually adding a string resource?
-
I need to add a string resource manaully to the .rc2 file in an MFC project, so did this (copying from the syntax in .rc file): STRINGTABLE BEGIN IDS_THESTRING "really long string here.." END and with a define inside resource.h: #define IDS_THESTRING 101 This compiles but the strings defined in the normal .rc file (that are edited through the string table editor in VS) are no longer valid, any attempt to reference them fails. Is this the correct syntax for manually adding a string resource?
This is the correct syntax. You just have to make sure two strings don't have the same ID. John
-
I need to add a string resource manaully to the .rc2 file in an MFC project, so did this (copying from the syntax in .rc file): STRINGTABLE BEGIN IDS_THESTRING "really long string here.." END and with a define inside resource.h: #define IDS_THESTRING 101 This compiles but the strings defined in the normal .rc file (that are edited through the string table editor in VS) are no longer valid, any attempt to reference them fails. Is this the correct syntax for manually adding a string resource?
I think in your resource.h there is a counter of different controls. You have to set it up by one. (This very maybe could be your problem.) the counters are round about the last lines of the file. good luck. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix