Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!umich!umeecs!msi-s0.msi.umn.edu!cs.umn.edu!wytten From: wytten@cs.umn.edu (Dale Wyttenbach) Newsgroups: comp.windows.ms Subject: Getting simple debug output Message-ID: <1990Aug3.184951.5599@cs.umn.edu> Date: 3 Aug 90 18:49:51 GMT Organization: University of Minnesota, Minneapolis, CSci dept. Lines: 22 I'm a experienced X11 programmer trying to write my first MSW program, and having a difficult time getting simple debug output from my program. (I'm trying to avoid learning yet another debugger) Right now I'm just opening a file called debug.txt and writing stuff into that, but I'd like to have a quickie function that pops up a dialog box with a message, sort of like this: sprintf(buf,"a= %d, b=%d",a,b); debugwin(buf); I would like to do this with a dialog box, but I don't know if you can pass the buf in since dialog boxes are defined in the .rc file. (Remember I'm brand new at this) Does anyone have something like this they would share? Any better ideas? "debug" doesn't appear in the index of any of the manuals we got with the SDK. Thanks, Dale Wyttenbach wytten@cs.umn.edu