Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcopy user I/O (eg creating,modifing,reading a file or folder)to a fixed hidden directory Pin
rohit.dhamija21-Jan-03 22:17
rohit.dhamija21-Jan-03 22:17 
GeneralMouse shortcuts Pin
Rage21-Jan-03 21:59
professionalRage21-Jan-03 21:59 
GeneralRe: Mouse shortcuts Pin
HENDRIK R21-Jan-03 22:14
HENDRIK R21-Jan-03 22:14 
GeneralRe: Mouse shortcuts Pin
Rage21-Jan-03 22:35
professionalRage21-Jan-03 22:35 
GeneralRe: Mouse shortcuts Pin
HENDRIK R21-Jan-03 22:49
HENDRIK R21-Jan-03 22:49 
GeneralIAS Pin
Alireza_dcg21-Jan-03 21:39
sussAlireza_dcg21-Jan-03 21:39 
QuestionWhat is the function of __FILE__ and __LINE__? Pin
George221-Jan-03 21:22
George221-Jan-03 21:22 
AnswerRe: What is the function of __FILE__ and __LINE__? Pin
Rage21-Jan-03 21:33
professionalRage21-Jan-03 21:33 
George2 wrote:
What is the meaning of __FILE__ and __LINE__ in the following code?



___FILE___ is a macro returning the current file. ___LINE____ returns the current line. These are used in debug mode to show you where assertion occur.
sprintf (s, "_Assert: %s, %d",__FILE__, __LINE__ )


will show you the message _Assert : Main.cpp, 123, meaning that this sprintf command was executed in the Main.cpp file at line 123.

However, you can change the meaning of __LINE___ with the #line precompiler directive, but defaut value is current line.




~RaGE();
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
Peter Hancock21-Jan-03 21:48
Peter Hancock21-Jan-03 21:48 
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
Rage21-Jan-03 21:56
professionalRage21-Jan-03 21:56 
GeneralRe: What is the function of __FILE__ and __LINE__? Pin
George221-Jan-03 22:07
George221-Jan-03 22:07 
Generalping broadcast problem.. Pin
supirsupian21-Jan-03 21:10
supirsupian21-Jan-03 21:10 
GeneralPreTranslateMessage does not handle F1 and F12 Pin
justin22321-Jan-03 20:58
justin22321-Jan-03 20:58 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
Joaquín M López Muñoz21-Jan-03 21:10
Joaquín M López Muñoz21-Jan-03 21:10 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
justin22321-Jan-03 21:20
justin22321-Jan-03 21:20 
GeneralRe: PreTranslateMessage does not handle F1 and F12 Pin
Joan M22-Jan-03 6:46
professionalJoan M22-Jan-03 6:46 
GeneralDo you know how to print ... Pin
Srijan21-Jan-03 18:12
Srijan21-Jan-03 18:12 
GeneralRe: Do you know how to print ... Pin
Roger Allen22-Jan-03 2:20
Roger Allen22-Jan-03 2:20 
GeneralC++ Operators Pin
Nilesh K.21-Jan-03 17:54
Nilesh K.21-Jan-03 17:54 
GeneralRe: C++ Operators Pin
Christian Graus21-Jan-03 18:57
protectorChristian Graus21-Jan-03 18:57 
GeneralRe: C++ Operators Pin
benjymous22-Jan-03 2:39
benjymous22-Jan-03 2:39 
GeneralRe: C++ Operators Pin
Christian Graus22-Jan-03 11:01
protectorChristian Graus22-Jan-03 11:01 
GeneralRe: C++ Operators Pin
Joel Lucsy22-Jan-03 3:04
Joel Lucsy22-Jan-03 3:04 
GeneralRe: C++ Operators Pin
Jörgen Sigvardsson22-Jan-03 3:30
Jörgen Sigvardsson22-Jan-03 3:30 
GeneralRe: C++ Operators Pin
Joel Lucsy22-Jan-03 3:51
Joel Lucsy22-Jan-03 3:51 

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.