Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAbout DAO Pin
Jacky Tsee16-Feb-06 4:34
Jacky Tsee16-Feb-06 4:34 
QuestionAdding ATL Support to MFC DLL Pin
a_kiani16-Feb-06 4:25
a_kiani16-Feb-06 4:25 
AnswerRe: Adding ATL Support to MFC DLL Pin
Michael Dunn16-Feb-06 7:40
sitebuilderMichael Dunn16-Feb-06 7:40 
GeneralRe: Adding ATL Support to MFC DLL Pin
a_kiani20-Feb-06 1:10
a_kiani20-Feb-06 1:10 
AnswerRe: Adding ATL Support to MFC DLL Pin
ThatsAlok17-Feb-06 3:13
ThatsAlok17-Feb-06 3:13 
GeneralRe: Adding ATL Support to MFC DLL Pin
zahedeh19-Feb-06 21:16
zahedeh19-Feb-06 21:16 
QuestionCopy large amount of data to clipboard Pin
t2x16-Feb-06 3:38
t2x16-Feb-06 3:38 
AnswerRe: Copy large amount of data to clipboard Pin
Tim Smith16-Feb-06 3:45
Tim Smith16-Feb-06 3:45 
AnswerRe: Copy large amount of data to clipboard Pin
James R. Twine16-Feb-06 4:19
James R. Twine16-Feb-06 4:19 
AnswerRe: Copy large amount of data to clipboard Pin
ThatsAlok17-Feb-06 3:11
ThatsAlok17-Feb-06 3:11 
Questionfast code Pin
Waldermort16-Feb-06 1:39
Waldermort16-Feb-06 1:39 
AnswerRe: fast code Pin
James R. Twine16-Feb-06 1:58
James R. Twine16-Feb-06 1:58 
JokeRe: fast code Pin
Ryan Binns16-Feb-06 17:21
Ryan Binns16-Feb-06 17:21 
AnswerRe: fast code Pin
David Crow16-Feb-06 3:13
David Crow16-Feb-06 3:13 
JokeRe: fast code Pin
James R. Twine16-Feb-06 3:17
James R. Twine16-Feb-06 3:17 
Questionunicode to char? Pin
9ine16-Feb-06 1:36
9ine16-Feb-06 1:36 
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 

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.