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