Click here to Skip to main content
16,009,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem in enumerating the registry values. Pin
Stephen Hewitt25-Nov-07 19:40
Stephen Hewitt25-Nov-07 19:40 
AnswerRe: problem in enumerating the registry values. Pin
ThatsAlok25-Nov-07 20:03
ThatsAlok25-Nov-07 20:03 
QuestionCompile error about MACRO Pin
George_George25-Nov-07 19:06
George_George25-Nov-07 19:06 
AnswerRe: Compile error about MACRO Pin
Stephen Hewitt25-Nov-07 19:13
Stephen Hewitt25-Nov-07 19:13 
GeneralRe: Compile error about MACRO Pin
George_George26-Nov-07 2:02
George_George26-Nov-07 2:02 
GeneralRe: Compile error about MACRO Pin
Stephen Hewitt26-Nov-07 12:48
Stephen Hewitt26-Nov-07 12:48 
GeneralRe: Compile error about MACRO Pin
George_George26-Nov-07 23:27
George_George26-Nov-07 23:27 
AnswerRe: Compile error about MACRO Pin
CPallini25-Nov-07 21:31
mveCPallini25-Nov-07 21:31 
If my guess is correct, you're trying to do something like the following:
#define MERGE(a,b) a##_##b
#define hello_world "H E L L O"

int main()
{
 char* p0;
 p0 = MERGE(hello, world);

 printf("%s\n", p0);
 return 0;
}


the above code compiles and sets p0 = " H E L L O"

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: Compile error about MACRO Pin
George_George26-Nov-07 1:58
George_George26-Nov-07 1:58 
GeneralRe: Compile error about MACRO Pin
CPallini26-Nov-07 2:13
mveCPallini26-Nov-07 2:13 
GeneralRe: Compile error about MACRO Pin
George_George26-Nov-07 4:29
George_George26-Nov-07 4:29 
AnswerRe: Compile error about MACRO Pin
David Crow26-Nov-07 4:04
David Crow26-Nov-07 4:04 
GeneralRe: Compile error about MACRO Pin
George_George26-Nov-07 4:30
George_George26-Nov-07 4:30 
Questioncan not close file in a loop to access an array of files [modified] Pin
mrby12325-Nov-07 18:53
mrby12325-Nov-07 18:53 
AnswerRe: can not close file in a loop to access an array of files Pin
Stephen Hewitt25-Nov-07 19:04
Stephen Hewitt25-Nov-07 19:04 
QuestionRe: can not close file in a loop to access an array of files Pin
Mark Salsbery25-Nov-07 19:09
Mark Salsbery25-Nov-07 19:09 
QuestionGUID_DEVICE_BATTERY error Pin
joshiprashant25-Nov-07 18:50
joshiprashant25-Nov-07 18:50 
AnswerRe: GUID_DEVICE_BATTERY error Pin
Florin Crişan25-Nov-07 22:06
Florin Crişan25-Nov-07 22:06 
AnswerRe: GUID_DEVICE_BATTERY error Pin
JudyL_MD26-Nov-07 2:55
JudyL_MD26-Nov-07 2:55 
QuestionWhile loop only works the first time through?? Pin
Officially Drew™25-Nov-07 17:25
Officially Drew™25-Nov-07 17:25 
AnswerRe: While loop only works the first time through?? Pin
Paresh Chitte25-Nov-07 18:09
Paresh Chitte25-Nov-07 18:09 
GeneralRe: While loop only works the first time through?? Pin
Officially Drew™25-Nov-07 18:41
Officially Drew™25-Nov-07 18:41 
GeneralRe: While loop only works the first time through?? Pin
Paresh Chitte25-Nov-07 23:13
Paresh Chitte25-Nov-07 23:13 
Questionscoket in c++ Pin
manish.patel25-Nov-07 16:10
manish.patel25-Nov-07 16:10 
AnswerRe: scoket in c++ Pin
Stephen Hewitt25-Nov-07 17:38
Stephen Hewitt25-Nov-07 17:38 

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.