Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: Increase Printing Speed Pin
Not Active19-Jan-04 2:33
mentorNot Active19-Jan-04 2:33 
GeneralRe: Increase Printing Speed Pin
Shaun Becker19-Jan-04 3:02
Shaun Becker19-Jan-04 3:02 
GeneralRe: Increase Printing Speed Pin
troels_sorensen19-Jan-04 4:18
troels_sorensen19-Jan-04 4:18 
GeneralGetting network & computer names Pin
Ashraf Alsadiq19-Jan-04 1:51
Ashraf Alsadiq19-Jan-04 1:51 
GeneralRe: Getting network & computer names Pin
Heath Stewart19-Jan-04 4:37
protectorHeath Stewart19-Jan-04 4:37 
GeneralRe: Getting network & computer names Pin
Ashraf Alsadiq19-Jan-04 18:13
Ashraf Alsadiq19-Jan-04 18:13 
GeneralTRACE Pin
bouli19-Jan-04 1:27
bouli19-Jan-04 1:27 
GeneralRe: TRACE Pin
Colin Angus Mackay19-Jan-04 1:44
Colin Angus Mackay19-Jan-04 1:44 
Although these are not macros they are much more powerful than the MFC equivalents.

System.Diagnostic.Trace.WriteLine();

System.Diagnostic.Debug.WriteLine();

The Debug version will only work in the debug build (or any build where you #define DEBUG).

The Trace version is more for instrumented builds where you want the output to go to a log file of the system event log and it is valid to have available in the release build. The Trace version will only work where you #define TRACE.

See also TraceListener

Also, for future reference: In the next version of .NET the Trace classes are meant to be vastly improved.

--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]


GeneralRe: TRACE Pin
bouli19-Jan-04 1:53
bouli19-Jan-04 1:53 
GeneralRe: TRACE Pin
Heath Stewart19-Jan-04 4:34
protectorHeath Stewart19-Jan-04 4:34 
GeneralI'm a bit confused here! Pin
profoundwhispers19-Jan-04 1:18
profoundwhispers19-Jan-04 1:18 
GeneralRe: I'm a bit confused here! Pin
Colin Angus Mackay19-Jan-04 1:57
Colin Angus Mackay19-Jan-04 1:57 
GeneralRe: I'm a bit confused here! Pin
profoundwhispers19-Jan-04 3:13
profoundwhispers19-Jan-04 3:13 
GeneralDataSources and ListViews Pin
rstrokur19-Jan-04 0:00
rstrokur19-Jan-04 0:00 
GeneralRe: DataSources and ListViews Pin
Heath Stewart19-Jan-04 4:29
protectorHeath Stewart19-Jan-04 4:29 
QuestionHow do I change the ALT-TAB icon ? Pin
Jan R Hansen18-Jan-04 23:30
Jan R Hansen18-Jan-04 23:30 
AnswerRe: How do I change the ALT-TAB icon ? Pin
Heath Stewart19-Jan-04 4:25
protectorHeath Stewart19-Jan-04 4:25 
GeneralReplacement for multiple inheritance Pin
Severino18-Jan-04 23:25
Severino18-Jan-04 23:25 
GeneralRe: Replacement for multiple inheritance Pin
Colin Angus Mackay19-Jan-04 2:09
Colin Angus Mackay19-Jan-04 2:09 
GeneralSoftware Testing tool Pin
Member 33502218-Jan-04 22:47
Member 33502218-Jan-04 22:47 
GeneralRe: Software Testing tool Pin
Colin Angus Mackay19-Jan-04 2:11
Colin Angus Mackay19-Jan-04 2:11 
GeneralWindows Service with Balloon Tooltips Pin
jochen vg18-Jan-04 22:40
jochen vg18-Jan-04 22:40 
GeneralRe: Windows Service with Balloon Tooltips Pin
Heath Stewart19-Jan-04 4:21
protectorHeath Stewart19-Jan-04 4:21 
GeneralWH_KEYBOARD Global Hook Pin
gekoscan18-Jan-04 20:55
gekoscan18-Jan-04 20:55 
GeneralRe: WH_KEYBOARD Global Hook Pin
Duncan Edwards Jones18-Jan-04 21:37
professionalDuncan Edwards Jones18-Jan-04 21:37 

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.