All Forums
 Microsoft Windows CE
 eVC Application Development
 Using RETAILMSG to output messages to debug port
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 15 Mar 2002 :  13:35:21  Show Profile  Email Poster
Q: I'd like to output my own debug messages through the debug port on my ADS evaluation system. How do I implement this?

Output to the debug port can be easily achieved using the RETAILMSG macro, which takes 2 parameters:

1. A condition on which to output the message.
2. A printf-style expression to output enclosed in parentheses.

Here are a couple samples:


RETAILMSG(TRUE, (_T("My Message")));


RETAILMSG((GetLastError() != 0), (_T("GetLastError returned: %d"), GetLastError()));



-----------------
Chris Tacke, eMVP
Applied Data Support

akidder

1519 Posts

Posted - 15 Mar 2002 :  14:45:14  Show Profile  Email Poster
The DEBUGMSG() macro works the same as RETAILMSG(), but sends out messages only from debug builds.

-----------------------
Drew Kidder
ADS Technology Transfer
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000