Resource Id
-
How can I retrieve the resource of a entry in the string table. That is knowing the name, "IDS_STRING1" to retrieve the int value and thus to be able to retrieve the caption of the specific entry. Spiros Prantalos
LoadString API function or CString::LoadString method if using MFC. Pavel Sonork 100.15206
-
LoadString API function or CString::LoadString method if using MFC. Pavel Sonork 100.15206
Using that I have to provide the IDS_STRING1 which actually is the int value. What I am saying is to have the name on a string that is CString hhh = "IDS_STRING1" and with that to be able to find the caption of that the entry that has the same name in the string table Spiros Prantalos
-
Using that I have to provide the IDS_STRING1 which actually is the int value. What I am saying is to have the name on a string that is CString hhh = "IDS_STRING1" and with that to be able to find the caption of that the entry that has the same name in the string table Spiros Prantalos
You can't do that directly. The compiler never sees "IDS_STRING1", only the number that it is
#define
d as. You'll need to create a lookup table (usingstd::map
for example) to convert from the string to the numerical equivalent. --Mike-- "alyson hannigan is so cute it's crazy" -- Googlism Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm