Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem in enumerating the registry values. Pin
yudhisthira25-Nov-07 19:19
yudhisthira25-Nov-07 19:19 
AnswerRe: problem in enumerating the registry values. Pin
Mark Salsbery25-Nov-07 19:31
Mark Salsbery25-Nov-07 19:31 
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 
Firstly this page on Token-Pasting[^] may be of interest; a Google[^] search on the topic may also be of interest. If you wanted a macro to do what you're after this would do the trick (I'm not sure why you'd want one however):
#include <iostream>
using namespace std;
 
#define MERGE(f, s) f s
 
void main()
{
	cout << MERGE("Hello ", "world!") << endl;
}



Steve

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 
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 

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.