Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 0:38
jhwurmbach22-Nov-07 0:38 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 1:26
George_George22-Nov-07 1:26 
GeneralRe: Smarter ways to define MACRO to strings? [modified] Pin
jhwurmbach22-Nov-07 2:08
jhwurmbach22-Nov-07 2:08 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 2:48
toxcct22-Nov-07 2:48 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 2:51
jhwurmbach22-Nov-07 2:51 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 4:18
toxcct22-Nov-07 4:18 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 18:21
George_George22-Nov-07 18:21 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 21:27
jhwurmbach22-Nov-07 21:27 
As toxcct said quite rude, you do not bother to read up the hints we give you.

The way you defined the macro, the line looks to the compiler like
const TCHAR* SecondArray [2] = {_T("FOO_T("FILE1")");, _T("FOO_T("FILE2")");};

And you wonder why it does not compile?
Remember: ##x in the macro-definition is replaced with whatever is written in the braces after PREFIX

Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 21:50
George_George22-Nov-07 21:50 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 21:53
jhwurmbach22-Nov-07 21:53 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 22:10
George_George22-Nov-07 22:10 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 1:23
George_George22-Nov-07 1:23 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 2:45
toxcct22-Nov-07 2:45 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 18:24
George_George22-Nov-07 18:24 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 21:12
toxcct22-Nov-07 21:12 
GeneralBe patient... Pin
CPallini22-Nov-07 21:21
mveCPallini22-Nov-07 21:21 
GeneralRe: Be patient... Pin
toxcct22-Nov-07 21:24
toxcct22-Nov-07 21:24 
GeneralRe: Be patient... Pin
CPallini22-Nov-07 21:55
mveCPallini22-Nov-07 21:55 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 21:47
George_George22-Nov-07 21:47 
QuestionHow to change window size Pin
Max++21-Nov-07 20:49
Max++21-Nov-07 20:49 
AnswerRe: How to change window size Pin
baerten21-Nov-07 21:04
baerten21-Nov-07 21:04 
AnswerRe: How to change window size Pin
prithaa21-Nov-07 21:10
prithaa21-Nov-07 21:10 
AnswerRe: How to change window size Pin
Hamid_RT21-Nov-07 21:11
Hamid_RT21-Nov-07 21:11 
GeneralRe: How to change window size Pin
prithaa21-Nov-07 21:30
prithaa21-Nov-07 21:30 
GeneralRe: How to change window size Pin
Hamid_RT21-Nov-07 21:38
Hamid_RT21-Nov-07 21: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.