At 1:56 PM -0500 10/5/99, Chow, Walter wrote:
>I just happened to know that there is a header file named as
>DebugMgr.h in the Palm OS 3.0 Support\Incs directory.  Inside
>this file, there is a function named DbgMessage.  I wonder if
>I can use this function to output some text to the 'Log' window
>or other windows.

I can't speak for the Windows version, but I have some experience using DbgMessage on 
a Mac.

When running on the simulator (Mac only), this routine can be used to display to the 
log window. The only problem is that the log window is closed when you choose the Quit 
command before the appStop event is processed. This makes it a poor choice for 
messages which might appear as the app shuts down. I used DbgMessage anyway, but I 
also write the debug messages to a log file using stdio.h (remember, we're running on 
the desktop).

When running on the emulator, DbgMessage is unreliable. This is probably not a problem 
on the PC since the way Poser communicates with the debugger is completely different. 
I use DbgMessage anyway, but I also write the debug messages to a log file using 
Poser's host API.

Note that Poser appends a '\n' automatically but the simulator does not.
-
Danny Epstein, Applied Thought Corporation
Have friends with Palm organizers? Get BeamBooks!
http://www.appliedthought.com/beambooks

Reply via email to