Path: utzoo!attcan!uunet!aplcen!haven!umd5!brianf From: brianf@umd5.umd.edu (Brian Farmer) Newsgroups: comp.windows.ms Subject: Re: Getting simple debug output Message-ID: <7063@umd5.umd.edu> Date: 8 Aug 90 14:11:07 GMT References: <1990Aug3.184951.5599@cs.umn.edu> Reply-To: brianf@umd5.umd.edu (Brian Farmer) Organization: University of Maryland, College Park Lines: 29 In article <1990Aug3.184951.5599@cs.umn.edu> wytten@cs.umn.edu (Dale Wyttenbach) writes: >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. > The May or June of 88 Microsoft Systems Journal has a very good Debug output function. Its basicly a printf type function but with a mask parameter so you could only display certain Debugs or all if you wanted, 30 different masks are available. They appear in in small dialog box which can remember the last 200 or so. Until Win3 and a Codeview which works on my 80, I swore (and cursed) by this helpful utility. The one problem with this box is you must be able to start your program in order you use it, you have to be able to get to your windows system menu. Early output I have to do thru a MessageBox. Since source could was included all limitations could changed. Brian Farmer brianf@umd5.umd.edu