Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:20
ronovice7-Jan-10 1:20 
GeneralRe: how to convert string to resource ID Pin
Richard MacCutchan7-Jan-10 1:31
mveRichard MacCutchan7-Jan-10 1:31 
QuestionRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:37
ronovice7-Jan-10 1:37 
AnswerRe: how to convert string to resource ID [modified] Pin
Richard MacCutchan7-Jan-10 1:45
mveRichard MacCutchan7-Jan-10 1:45 
AnswerRe: how to convert string to resource ID Pin
cmk7-Jan-10 0:28
cmk7-Jan-10 0:28 
GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 1:24
ronovice7-Jan-10 1:24 
GeneralRe: how to convert string to resource ID [modified] Pin
Richard MacCutchan7-Jan-10 1:33
mveRichard MacCutchan7-Jan-10 1:33 
GeneralRe: how to convert string to resource ID Pin
cmk7-Jan-10 3:13
cmk7-Jan-10 3:13 
Yeah, RT_STRING's screw things up, you can't even FindResource() on them without jumping through hoops.

e.g.
Given: IDS_STRING as a String Table entry

// Fails
hnd = FindResource(mod, MAKEINTRESOURCE(IDS_STRING), RT_STRING);

// Works
id_string = MAKEINTRESOURCE((LOWORD(IDS_STRING)>>4)+1);
hnd = FindResource(mod, id_string, RT_STRING);

... let alone getting the size, or loading the string without using LoadString().

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

GeneralRe: how to convert string to resource ID Pin
ronovice7-Jan-10 3:39
ronovice7-Jan-10 3:39 
GeneralRe: how to convert string to resource ID Pin
Richard MacCutchan7-Jan-10 4:35
mveRichard MacCutchan7-Jan-10 4:35 
AnswerRe: how to convert string to resource ID Pin
KarstenK7-Jan-10 1:53
mveKarstenK7-Jan-10 1:53 
QuestionModeless Dialog Pin
Pryabu6-Jan-10 19:53
Pryabu6-Jan-10 19:53 
AnswerRe: Modeless Dialog Pin
ThatsAlok6-Jan-10 20:15
ThatsAlok6-Jan-10 20:15 
GeneralRe: Modeless Dialog Pin
Pryabu6-Jan-10 20:18
Pryabu6-Jan-10 20:18 
AnswerRe: Modeless Dialog Pin
Code-o-mat6-Jan-10 21:33
Code-o-mat6-Jan-10 21:33 
AnswerRe: Modeless Dialog Pin
Parthiban6-Jan-10 21:55
Parthiban6-Jan-10 21:55 
QuestionAudio Visualization Pin
Benjamin Bruno6-Jan-10 19:46
Benjamin Bruno6-Jan-10 19:46 
Questionshuffling the bitmap buttons Pin
gudgirl6-Jan-10 19:09
gudgirl6-Jan-10 19:09 
AnswerRe: shuffling the bitmap buttons Pin
Emilio Garavaglia6-Jan-10 20:21
Emilio Garavaglia6-Jan-10 20:21 
QuestionConversion from VC6 to VC8 Pin
ThatsAlok6-Jan-10 19:03
ThatsAlok6-Jan-10 19:03 
AnswerRe: Conversion from VC6 to VC8 Pin
«_Superman_»6-Jan-10 19:40
professional«_Superman_»6-Jan-10 19:40 
GeneralRe: Conversion from VC6 to VC8 Pin
ThatsAlok6-Jan-10 20:13
ThatsAlok6-Jan-10 20:13 
GeneralRe: Conversion from VC6 to VC8 Pin
«_Superman_»6-Jan-10 20:48
professional«_Superman_»6-Jan-10 20:48 
GeneralRe: Conversion from VC6 to VC8 Pin
ThatsAlok6-Jan-10 21:14
ThatsAlok6-Jan-10 21:14 
AnswerRe: Conversion from VC6 to VC8 Pin
Emilio Garavaglia6-Jan-10 20:32
Emilio Garavaglia6-Jan-10 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.