Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to Find = in a CString Pin
Nish Nishant11-Mar-02 17:15
sitebuilderNish Nishant11-Mar-02 17:15 
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 

No, you are probably getting bitten by a Visual Studio bug. Visual Studio filters the output of the OutPutDebugString() function, which the TRACE macro ultimately calls, before showing it in the output window in order to remove the application name (which otherwise gets added). However, the filtering is not too smart (at least with version 6.0), and it messes up the display of TRACE messages that includes both an open parenthesis "(" and a colon ":" in that order.

When I add the following lines to my code

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"));

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


Intrestingly, if I select this text text in the output window and paste it into 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
Stephen C. Steel12-Mar-02 12:12
Stephen C. Steel12-Mar-02 12:12 
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 

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.