How Could I Use a define macro identifier in an other define macro replacement list?
-
How Could I Use a define macro identifier in an other define macro replacement list? for example in the following example:
#define APP_TEST1 L"Test1"
#define APP_TEST2 L"Test2"#define APP_TEST L"Test1 With Test2"
I want to represent the third define macro with 2 first macro?
-
How Could I Use a define macro identifier in an other define macro replacement list? for example in the following example:
#define APP_TEST1 L"Test1"
#define APP_TEST2 L"Test2"#define APP_TEST L"Test1 With Test2"
I want to represent the third define macro with 2 first macro?
#define APP_TEST APP_TEST1 " With " APP_TEST2
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
#define APP_TEST APP_TEST1 " With " APP_TEST2
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
How Could I Use a define macro identifier in an other define macro replacement list? for example in the following example:
#define APP_TEST1 L"Test1"
#define APP_TEST2 L"Test2"#define APP_TEST L"Test1 With Test2"
I want to represent the third define macro with 2 first macro?
be really careful with macros, because it is hard to debug and in can lead to really bogouis errors. => //const LPTCSTR APP_TEST1 = L"Test1"; const LPCTSTR APP_TEST1 = L"Test1"; ... Code quality is also an important issue :-O
Press F1 for help or google it. Greetings from Germany
modified on Friday, March 19, 2010 3:30 AM
-
be really careful with macros, because it is hard to debug and in can lead to really bogouis errors. => //const LPTCSTR APP_TEST1 = L"Test1"; const LPCTSTR APP_TEST1 = L"Test1"; ... Code quality is also an important issue :-O
Press F1 for help or google it. Greetings from Germany
modified on Friday, March 19, 2010 3:30 AM
KarstenK wrote:
const LPTCSTR APP_TEST1 = L"Test1";
It should be
LPCTSTR
. :) -
KarstenK wrote:
const LPTCSTR APP_TEST1 = L"Test1";
It should be
LPCTSTR
. :)Good catch :)