Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: unicode to char? Pin
9ine16-Feb-06 1:37
9ine16-Feb-06 1:37 
GeneralRe: unicode to char? Pin
ThatsAlok16-Feb-06 3:05
ThatsAlok16-Feb-06 3:05 
AnswerRe: unicode to char? Pin
James R. Twine16-Feb-06 1:51
James R. Twine16-Feb-06 1:51 
GeneralRe: unicode to char? Pin
PJ Arends16-Feb-06 7:24
professionalPJ Arends16-Feb-06 7:24 
JokeRe: unicode to char? Pin
James R. Twine16-Feb-06 8:08
James R. Twine16-Feb-06 8:08 
QuestionParameters idenfying a system particularly windows Pin
cpp_prgmer16-Feb-06 0:52
cpp_prgmer16-Feb-06 0:52 
AnswerRe: Parameters idenfying a system particularly windows Pin
James R. Twine16-Feb-06 1:01
James R. Twine16-Feb-06 1:01 
Questionpurpose of undef in the code Pin
arunperi15-Feb-06 22:42
arunperi15-Feb-06 22:42 
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

The second line aliases the keyword new to DEBUG_NEW, which is itself a macro defined in the Microsoft-specific header afx.h. DEBUG_NEW references THIS_FILE and __LINE__, thereby capturing the faux new's source context for possible tracing and debugging.

----
Can any one pls. explain the purpose of undef in the code above.
This code is almost present in almost in every file, in debug version after debug new is defined, THIS_FILE is used in debugging only then undef is un-defining it then what is the purpose of THIS_FILE.

Rgds,
Arun.
AnswerRe: purpose of undef in the code Pin
toxcct15-Feb-06 23:02
toxcct15-Feb-06 23:02 
GeneralRe: purpose of undef in the code Pin
arunperi15-Feb-06 23:32
arunperi15-Feb-06 23:32 
GeneralRe: purpose of undef in the code Pin
toxcct15-Feb-06 23:35
toxcct15-Feb-06 23:35 
GeneralRe: purpose of undef in the code Pin
arunperi15-Feb-06 23:48
arunperi15-Feb-06 23:48 
AnswerRe: purpose of undef in the code Pin
Chris Losinger16-Feb-06 2:18
professionalChris Losinger16-Feb-06 2:18 
QuestionProblems in accessing Parameters in COM... Pin
LordBalu15-Feb-06 22:30
LordBalu15-Feb-06 22:30 
AnswerRe: Problems in accessing Parameters in COM... Pin
James R. Twine16-Feb-06 1:07
James R. Twine16-Feb-06 1:07 
AnswerRe: Problems in accessing Parameters in COM... Pin
LordBalu16-Feb-06 1:50
LordBalu16-Feb-06 1:50 
AnswerRe: Problems in accessing Parameters in COM... Pin
Michael Dunn16-Feb-06 7:44
sitebuilderMichael Dunn16-Feb-06 7:44 
QuestionIntercepting IE/MSHTML requests to download page elements Pin
Taka Muraoka15-Feb-06 21:55
Taka Muraoka15-Feb-06 21:55 
QuestionSSL certificates and MFC Pin
Daniel Gerstner15-Feb-06 21:48
Daniel Gerstner15-Feb-06 21:48 
AnswerRe: SSL certificates and MFC Pin
Daniel Gerstner16-Feb-06 0:14
Daniel Gerstner16-Feb-06 0:14 
QuestionUSB communication Pin
mani_ruju15-Feb-06 20:32
mani_ruju15-Feb-06 20:32 
AnswerRe: USB communication Pin
Cedric Moonen15-Feb-06 20:41
Cedric Moonen15-Feb-06 20:41 
QuestionCSingleLock doubt Pin
ledallam15-Feb-06 20:26
ledallam15-Feb-06 20:26 
AnswerRe: CSingleLock doubt Pin
kakan15-Feb-06 20:55
professionalkakan15-Feb-06 20:55 
AnswerRe: CSingleLock doubt Pin
Ryan Binns15-Feb-06 21:59
Ryan Binns15-Feb-06 21:59 

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.