Click here to Skip to main content
15,895,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to Find = in a CString Pin
12-Mar-02 0:26
suss12-Mar-02 0:26 
GeneralRe: Trying to Find = in a CString Pin
12-Mar-02 0:39
suss12-Mar-02 0:39 
Generalnebulous TRACE output Pin
moredip11-Mar-02 13:37
moredip11-Mar-02 13:37 
GeneralRe: nebulous TRACE output Pin
Shog911-Mar-02 14:07
sitebuilderShog911-Mar-02 14:07 
GeneralRe: nebulous TRACE output Pin
Roger Allen11-Mar-02 22:12
Roger Allen11-Mar-02 22:12 
GeneralRe: nebulous TRACE output Pin
moredip12-Mar-02 5:23
moredip12-Mar-02 5:23 
GeneralRe: nebulous TRACE output Pin
Stephen C. Steel12-Mar-02 11:58
Stephen C. Steel12-Mar-02 11:58 
GeneralRe: nebulous TRACE output Pin
Stephen C. Steel12-Mar-02 12:12
Stephen C. Steel12-Mar-02 12:12 

No, you aren't being paranoid - there is a bug in Visual Studio version 6.0. The TRACE macro ultimately uses OutputDebugString(), and along the way the application name gets prepended to the output. Visual studio has a filter that attempts to strip the application name before showing the text in the output window, but it is buggy.

If I add the following code to my application

TRACE (_T("Text before colon: Text after colon\n"));
TRACE (_T("Text with parenthesis() before colon: Text after colon\n"));
TRACE (_T("Text with open  parenthesis( before colon: Text after colon\n"));
TRACE (_T("Text with close parenthesis) before colon: Text after colon\n"));
TRACE (_T("Text with (text inside parenthesis) before colon: Text after colon\n"));

then the Visual Studio output window displays
Text before colon: Text after colon
Text with parenthesis() before colon
Text with open  parenthesis( before colon
Text with close parenthesis) before colon: Text after colon
Text with (text inside parenthesis) before colon

Interestingly, if I select the text in the output window and paste it to notepad, I get

Text before colon: Text after colon
Text with parenthesis() before colonText with open  parenthesis( before colonText with close parenthesis) before colon: Text after colon
Text with (text inside parenthesis) before colon


Stephen C. Steel
Kerr Vayne Systems Ltd.
GeneralRe: nebulous TRACE output Pin
moredip12-Mar-02 12:20
moredip12-Mar-02 12:20 
Questiontoo simple to work? Pin
11-Mar-02 13:18
suss11-Mar-02 13:18 
AnswerRe: too simple to work? Pin
Joaquín M López Muñoz11-Mar-02 20:14
Joaquín M López Muñoz11-Mar-02 20:14 
GeneralRe: too simple to work? Pin
12-Mar-02 4:47
suss12-Mar-02 4:47 
GeneralRe: too simple to work? Pin
Atila12-Mar-02 5:25
Atila12-Mar-02 5:25 
GeneralRe: too simple to work? Pin
12-Mar-02 5:27
suss12-Mar-02 5:27 
GeneralRe: too simple to work? Pin
12-Mar-02 5:41
suss12-Mar-02 5:41 
GeneralRe: Hello again ! Pin
Atila12-Mar-02 5:57
Atila12-Mar-02 5:57 
GeneralUsing Property Pages to Display ODBC Database Pin
dsouthard11-Mar-02 12:39
dsouthard11-Mar-02 12:39 
GeneralCHtmlView question Pin
Chris Losinger11-Mar-02 12:22
professionalChris Losinger11-Mar-02 12:22 
GeneralAfxGetMainWnd() from a Worker Thread Pin
Giles11-Mar-02 11:03
Giles11-Mar-02 11:03 
GeneralRe: AfxGetMainWnd() from a Worker Thread Pin
Morozov Alexey11-Mar-02 12:20
Morozov Alexey11-Mar-02 12:20 
GeneralRe: AfxGetMainWnd() from a Worker Thread Pin
Giles12-Mar-02 12:29
Giles12-Mar-02 12:29 
GeneralRe: AfxGetMainWnd() from a Worker Thread Pin
Nish Nishant11-Mar-02 14:04
sitebuilderNish Nishant11-Mar-02 14:04 
GeneralRe: AfxGetMainWnd() from a Worker Thread Pin
Giles12-Mar-02 12:26
Giles12-Mar-02 12:26 
GeneralCObArray - Destructors for CObject Pin
dazinith11-Mar-02 10:36
dazinith11-Mar-02 10:36 
GeneralODBC and ExecuteSQL Pin
Yousuf11-Mar-02 10:04
Yousuf11-Mar-02 10:04 

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.