Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Meeting troubles when reading two integers from a file. Pin
George220-Apr-03 3:23
George220-Apr-03 3:23 
QuestionHow to let vector store reference? Pin
George220-Apr-03 2:31
George220-Apr-03 2:31 
AnswerRe: How to let vector store reference? Pin
Nick Parker20-Apr-03 3:22
protectorNick Parker20-Apr-03 3:22 
GeneralRe: How to let vector store reference? Pin
George220-Apr-03 3:27
George220-Apr-03 3:27 
GeneralRe: How to let vector store reference? Pin
Nitron21-Apr-03 3:09
Nitron21-Apr-03 3:09 
GeneralRe: How to let vector store reference? Pin
George221-Apr-03 19:52
George221-Apr-03 19:52 
GeneralRe: How to let vector store reference? Pin
Nitron22-Apr-03 2:51
Nitron22-Apr-03 2:51 
GeneralMacro Question / getting detailed Class / Functioncall Information Pin
Sendel20-Apr-03 1:39
Sendel20-Apr-03 1:39 
I have a problem with Macros in Visual C++.Cry | :((
I want to write a more Detailed ErrorMessage Class, which gives me a part of sourcecode where the Error occurs.

There are some predefined Macros which will help me to that:

Current File: __FILE__
and Current Line: __LINE__

but I did not find a Macro for Current Call.Confused | :confused: So I want to make it my self.OMG | :OMG:

#define __CALL__ "void myFunction(int value);"
void myFunction(int value)
{
   printf("current Call is %s", __CALL__);
}


but problem is that I have to redo this procedure on every Function with additional undef:
#ifdef __CALL__
#undef __CALL__
#endif
#define __CALL__ "void myNextFunction(int value);"


So, I want to reduce manual work by autmating the following code:

#ifdef __CALL__
#undef __CALL__
#endif
#define __CALL__ "void myFunction(int value);"


so i want to do something like this (multiple Preprocessorcalls in one Macro:

#define SETFUNCTION(x) #ifdef __CALL__ #undef __CALL__ #endif #define __CALL__ x


WTF | :WTF:

But it all seems not to work or it is a hard handwork to insert this long code before each function. Dead | X|

So here are my Questions:

1. Confused | :confused: Is there any possibility to get easier more detailed Debug Information? (like current Function call)
2. Confused | :confused: Is there any way to make a Macro of Macros ? (like #define def(x) #ifndef x #define x #endif)

Thank you Rose | [Rose] ,
Sendel
GeneralRe: Macro Question / getting detailed Class / Functioncall Information Pin
Phil Hamer20-Apr-03 7:26
Phil Hamer20-Apr-03 7:26 
GeneralRe: Macro Question / getting detailed Class / Functioncall Information Pin
Phil Hamer20-Apr-03 7:43
Phil Hamer20-Apr-03 7:43 
Questionhow to display a file into CScrollView? Pin
liuty200619-Apr-03 21:18
liuty200619-Apr-03 21:18 
AnswerRe: how to display a file into CScrollView? Pin
Nish Nishant19-Apr-03 21:24
sitebuilderNish Nishant19-Apr-03 21:24 
GeneralTraversing between workspaces Pin
Makover19-Apr-03 20:55
Makover19-Apr-03 20:55 
Generali'm new Pin
Mario_Young19-Apr-03 18:32
Mario_Young19-Apr-03 18:32 
GeneralRe: i'm new Pin
J. Dunlap19-Apr-03 18:37
J. Dunlap19-Apr-03 18:37 
GeneralRe: i'm new Pin
Nish Nishant19-Apr-03 19:24
sitebuilderNish Nishant19-Apr-03 19:24 
GeneralRe: i'm new Pin
Sendel20-Apr-03 1:53
Sendel20-Apr-03 1:53 
GeneralOption for an Exit Pin
Anonymous19-Apr-03 18:17
Anonymous19-Apr-03 18:17 
GeneralRe: Option for an Exit Pin
Bartosz Bien20-Apr-03 4:32
Bartosz Bien20-Apr-03 4:32 
GeneralRe: Option for an Exit Pin
Anonymous20-Apr-03 5:41
Anonymous20-Apr-03 5:41 
GeneralRe: Option for an Exit Pin
Bartosz Bien20-Apr-03 6:23
Bartosz Bien20-Apr-03 6:23 
GeneralToolbar Tooltips Pin
DuFF19-Apr-03 14:41
DuFF19-Apr-03 14:41 
GeneralRe: Toolbar Tooltips Pin
Michael Dunn19-Apr-03 18:00
sitebuilderMichael Dunn19-Apr-03 18:00 
GeneralRe: Toolbar Tooltips Pin
cleathley19-Apr-03 19:09
cleathley19-Apr-03 19:09 
GeneralRe: Toolbar Tooltips Pin
Nick Parker20-Apr-03 3:43
protectorNick Parker20-Apr-03 3:43 

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.