On Wednesday, August 21, 2002, at 10:11 AM, Randall Hopper wrote:
Wyn Williams:
|I am struggling to build some DX modules. I have two questions :
|
|1) If I write a printf statement to look at some parameters, where
|does the output go. It doesn't go to standard output, and it doesn't
|go to the 'message' window' if I attach a 'print' module.
|So.. how do I print out parameters of my code ?..
IIRC, if you write to stderr, your messages will show up in the DXUI
Message window. Alternatively (and a better solution) is to use
DXMessage.
See the programmers ref or the dx header files for usage.
In the versions I'm working with (MacOS X and RH Linux), fprint to stderr
writes to the messages window, but I believe the output appears in bold
and
dings a bell. I recall seeing a warning somewhere in the DX docs long ago
saying to always use DXMessage if possible since only it will correctly
work in a multiprocessor environment. Don't know if that's still true.
Richard Gillilan
MacCHESS, Cornell