home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools
- Path: sparky!uunet!spool.mu.edu!caen!malgudi.oar.net!news.ans.net!cmcl2!panix!rryan
- From: rryan@panix.com (Rob Ryan)
- Subject: Re: MSC 7.0 windows debug mode and 'Cant read from device AUX'
- Message-ID: <1992Dec12.162240.24351@panix.com>
- Date: Sat, 12 Dec 1992 16:22:40 GMT
- Distribution: comp.os.ms-windows.programmer.tools
- References: <RHARMON.92Dec10144328@triton.uucp> <1992Dec12.001809.2647@microsoft.com>
- Organization: Panix, NYC
- Lines: 40
-
- In <1992Dec12.001809.2647@microsoft.com> stevesi@microsoft.com (Steven
- Sinofsky) writes:
-
- >Whenever you run debug kernel you need to have your machine connected
- >to a com port so that the output from the debug kernel has some place
- >to go. If you don't have (or don't want to use) a second machine/dumb
- >terminal then just run the DBWIN app that ships with C7. Add it to
- >your startup group for maximum benefit.
-
- Incidentally, dbwin.exe is one of those programs that is nice to have in
- one's startup group when using the debugging kernel, but pretty useless when
- not. I use the following program, ifdebug, to conditionally run programs in
- my startup group when using the debugging kernel. Thus rather than having
- "dbwin" and "drwatson" in my StartUp group, I have "ifdebug dbwin" and
- "ifdebug drwatson" there (I manually changed the icons and description text
- to reflect what program was actually being run).
-
- Hope this helps.
-
- -- Rob
-
- -------------------------------- cut here --------------------------------
- /* ifdebug.c */
-
- #include <windows.h>
-
- int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine,
- int nCmdShow)
- {
- WINDEBUGINFO wdi;
-
- if (GetWinDebugInfo(&wdi, WDI_OPTIONS))
- WinExec(lpCmdLine, nCmdShow);
-
- return 0;
- } /* WinMain */
-
- --
- Rob Ryan
- rryan@panix.com
-