Click here to Skip to main content
15,894,247 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question_variant_t Pin
vital_parsley200025-May-09 19:36
vital_parsley200025-May-09 19:36 
AnswerRe: _variant_t Pin
«_Superman_»25-May-09 19:42
professional«_Superman_»25-May-09 19:42 
GeneralRe: _variant_t Pin
vital_parsley200025-May-09 20:47
vital_parsley200025-May-09 20:47 
GeneralRe: _variant_t Pin
«_Superman_»25-May-09 21:51
professional«_Superman_»25-May-09 21:51 
GeneralRe: _variant_t Pin
vital_parsley200025-May-09 21:57
vital_parsley200025-May-09 21:57 
QuestionRe: _variant_t Pin
CPallini25-May-09 22:06
mveCPallini25-May-09 22:06 
GeneralRe: _variant_t Pin
Stuart Dootson26-May-09 0:45
professionalStuart Dootson26-May-09 0:45 
QuestionRead List values Pin
Davitor25-May-09 18:29
Davitor25-May-09 18:29 
AnswerRe: Read List values Pin
_AnsHUMAN_ 25-May-09 18:33
_AnsHUMAN_ 25-May-09 18:33 
Question[Hi! Programs CMOS Boot from USB ] Pin
tuan111125-May-09 17:24
tuan111125-May-09 17:24 
QuestionLocal symbols of a shared library Pin
sheeri manik25-May-09 14:44
sheeri manik25-May-09 14:44 
QuestionRe: Local symbols of a shared library Pin
CPallini25-May-09 20:41
mveCPallini25-May-09 20:41 
QuestionPlease help with MFC dialog Pin
Ryuk199025-May-09 12:50
Ryuk199025-May-09 12:50 
AnswerRe: Please help with MFC dialog Pin
Stuart Dootson25-May-09 14:04
professionalStuart Dootson25-May-09 14:04 
GeneralRe: Please help with MFC dialog Pin
Ryuk199025-May-09 14:29
Ryuk199025-May-09 14:29 
GeneralRe: Please help with MFC dialog Pin
Stuart Dootson25-May-09 14:33
professionalStuart Dootson25-May-09 14:33 
AnswerRe: Please help with MFC dialog Pin
Bram van Kampen26-May-09 13:59
Bram van Kampen26-May-09 13:59 
QuestionMacros. Pin
bawratri25-May-09 12:15
bawratri25-May-09 12:15 
AnswerRe: Macros. Pin
Stuart Dootson25-May-09 13:27
professionalStuart Dootson25-May-09 13:27 
As you've found, you can't use __FUNCTION__, as it's inserted as a string, not a token. This is a shame, because you can convert a token to a string in the pre-processor, but not vice-versa.

So, you're only option would be this:

void a_main() { ; }

#define b(fn) a##fn()

int main()
{
  b(main);
  return 0;
}


i.e. putting the function name in explicitly Frown | :-(

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Macros. Pin
bawratri25-May-09 22:38
bawratri25-May-09 22:38 
QuestionMFC Networking Application. Pin
reddy0725-May-09 11:46
reddy0725-May-09 11:46 
AnswerRe: MFC Networking Application. Pin
norish26-May-09 17:50
norish26-May-09 17:50 
AnswerRe: MFC Networking Application. Pin
fanronghua26-May-09 22:32
fanronghua26-May-09 22:32 
Questionhow to connect database Pin
Supriyanka25-May-09 6:01
Supriyanka25-May-09 6:01 
QuestionRe: how to connect database Pin
David Crow25-May-09 8:33
David Crow25-May-09 8:33 

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.