Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Double clicking on output window text (MSVS 6.0)

Status
Not open for further replies.

sloojer

Programmer
Nov 23, 2005
2
GB
Hello

I know about TRACE command to write info to the output window in Visual Studio.

I would like to know if it is possible to link text in the ouput window to lines in the code as with the error/warning messages when you compile? i.e. I could double click on the line of text and it would go to a source/header file.

Cheers
 
Yes, just make the message with the format:

<FilePathName>(<LineNumber>): <ErrorMessage>

Replacing the <>'s with the appropriate values of course. For example:
Code:
TRACE("%s(%d): %s", __FILE__, __LINE__, "Error!");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top