Click here to Skip to main content
15,887,331 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: best book for VC++ beginners Pin
nicknotyet8-Jun-06 3:29
nicknotyet8-Jun-06 3:29 
GeneralRe: best book for VC++ beginners Pin
Nemanja Trifunovic7-Jun-06 15:18
Nemanja Trifunovic7-Jun-06 15:18 
GeneralRe: best book for VC++ beginners Pin
bob169727-Jun-06 17:46
bob169727-Jun-06 17:46 
GeneralRe: best book for VC++ beginners Pin
Krishnatv7-Jun-06 19:33
Krishnatv7-Jun-06 19:33 
GeneralRe: best book for VC++ beginners Pin
ThatsAlok7-Jun-06 19:43
ThatsAlok7-Jun-06 19:43 
QuestionXP/win2000 Scroller Click event Pin
anilksingh6-Jun-06 18:00
anilksingh6-Jun-06 18:00 
QuestionOpen Forms in a second Monitor Pin
spy_charly6-Jun-06 17:43
spy_charly6-Jun-06 17:43 
Question__LINE__ doesn't work in Visual Studio 2005 Pin
User 2155976-Jun-06 16:43
User 2155976-Jun-06 16:43 
Hi,

I am using Visual Studio 2005. I was using some macros in my code. What I found was that I was unable to reference __LINE__ macro. The output of macros was wrong. I have created a sample and following is the code snippet -

#define TMP_THIS_FILE SimpleTrace_cpp<br />
#define TMP_EVAL(_value_) _value_<br />
#define TMP_(Id) TMP_EVAL(TMPFUNC_) ## TMP_EVAL(Id) ## TMP_EVAL(_) ## TMP_EVAL(TMP_THIS_FILE) ## TMP_EVAL(__LINE__)<br />
<br />
#define doTrace TMP_(CALL)



At line number 22 in my CPP file, If I make a call to -

doTrace();

Then the output should be
TMPFUNC_CALL_SimpleTrace_cpp22()

Instead the compiler is generating -
TMPFUNC_CALL_SimpleTrace_cpp()

And I get a compiler error saying
e:\projects\temp\temp\SimpleTrace.cpp(22) : error C3861: 'TMPFUNC_CALL_SimpleTrace_cpp': identifier not found

Any idea whats going wrong with the compiler? Also do I have to add any compiler switches to use __LINE__ in VS 2005?


S o h a i l K a d i w a l a

modified 21-Apr-21 21:01pm.

AnswerRe: __LINE__ doesn't work in Visual Studio 2005 Pin
User 2155976-Jun-06 17:01
User 2155976-Jun-06 17:01 
QuestionDifferent CSplitterWnd behaviour needed Pin
Vladimir Svrkota6-Jun-06 14:00
professionalVladimir Svrkota6-Jun-06 14:00 
AnswerRe: Different CSplitterWnd behaviour needed Pin
LeeeNN6-Jun-06 14:37
LeeeNN6-Jun-06 14:37 
GeneralRe: Different CSplitterWnd behaviour needed Pin
Vladimir Svrkota7-Jun-06 16:06
professionalVladimir Svrkota7-Jun-06 16:06 
QuestionOverlapped sockets and completion routines. Pin
luke7276-Jun-06 13:43
luke7276-Jun-06 13:43 
QuestionDrawing a bitmap Pin
Pugman8126-Jun-06 12:12
Pugman8126-Jun-06 12:12 
AnswerRe: Drawing a bitmap Pin
Chris Losinger6-Jun-06 15:46
professionalChris Losinger6-Jun-06 15:46 
GeneralRe: Drawing a bitmap Pin
Pugman8126-Jun-06 23:07
Pugman8126-Jun-06 23:07 
GeneralRe: Drawing a bitmap [modified] Pin
Chris Losinger7-Jun-06 1:13
professionalChris Losinger7-Jun-06 1:13 
Questionwhich function gets color setting of PC? Pin
includeh106-Jun-06 10:27
includeh106-Jun-06 10:27 
AnswerRe: which function gets color setting of PC? Pin
Ryan Binns6-Jun-06 18:25
Ryan Binns6-Jun-06 18:25 
QuestionSocket Connection Pin
SPowers6-Jun-06 8:43
SPowers6-Jun-06 8:43 
QuestionCreateDIBSection Pin
includeh106-Jun-06 8:36
includeh106-Jun-06 8:36 
AnswerRe: CreateDIBSection Pin
valikac6-Jun-06 9:20
valikac6-Jun-06 9:20 
GeneralRe: CreateDIBSection Pin
includeh106-Jun-06 9:30
includeh106-Jun-06 9:30 
AnswerRe: CreateDIBSection Pin
Chris Losinger6-Jun-06 9:53
professionalChris Losinger6-Jun-06 9:53 
GeneralRe: CreateDIBSection Pin
includeh106-Jun-06 10:15
includeh106-Jun-06 10:15 

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.