Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!shelby!rutgers!att!chinet!patrickd From: patrickd@chinet.chi.il.us (Patrick Deupree) Newsgroups: comp.windows.ms Subject: Re: How to start up Windows with an application ? Message-ID: <1989Dec6.154304.29766@chinet.chi.il.us> Date: 6 Dec 89 15:43:04 GMT References: <5443@ncrcae.Columbia.NCR.COM> Reply-To: patrickd@chinet.chi.il.us (Patrick Deupree) Distribution: na Organization: The Whitewater Group, Evanston, IL Lines: 26 In article <5443@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes: >I recently got a copy of Excel. I noticed that when one starts Excel from >DOS, it automatically starts up Windows. Any of the Win Apps I generate with >the SDK always complain that they need to run under Windows when started up >from DOS, then they exit. How does one make a Win App that automatically >kicks off Windows ? Again, I insert my disclaimer that says I know nothing about how the Microsoft guys do these things. I'm guessing at all of this with my somewhat limited knowledge of low level Windows. Seeing as the part of your program that says "You need Windows to run this app" is the winstub file that is linked in with Windows programs when you create them, I'd imagine they modified theirs. If Windows is in the path (which it always should be) they probably just called a dos interrupt that runs Windows automatically instead of printing out the line that says "You need Windows to run this" (I'm ad libbing this line since I forget what it was at this moment). Overall it's probably pretty simple to implement. Just a little dangerous since, if you don't have Windows, the only message you'll probably get is a dos "file not found" error. -- "I place my faith in fools. Self confidence, my friends call it." -Edgar Allen Poe Patrick Deupree -> patrickd@chinet.chi.il.us