Xref: utzoo comp.windows.ms.programmer:2128 comp.lang.pascal:6462 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!gatech!mcnc!rti!bcw From: bcw@rti.rti.org (Bruce Wright) Newsgroups: comp.windows.ms.programmer,comp.lang.pascal Subject: Re: Win and Non-Win Programs in One File? Summary: Windows and DOS in the same file Message-ID: <1991Apr28.170823.22263@rti.rti.org> Date: 28 Apr 91 17:08:23 GMT References: <1059@stewart.UUCP> Distribution: comp Organization: Research Triangle Institute, RTP, NC Lines: 15 In article <1059@stewart.UUCP>, jerry@polygen.uucp (Jerry Shekhel) writes: > Hello. I've developed a Windows game that I'll be uploading shortly to > the archive sites. I've got a question for a future version: > > If I develop a DOS/VGA version of my game, is it possible to use it as > the stub to be bound with the Windows version? I just thought it would > be kind of cool to have one .EXE that can run in Windows or plain DOS. This can be done without any particular problems. It might even be possible to share some code in the .EXE file between the two programs, but it would be awkward and probably not worth it unless it was really big and the routines in question didn't have to call any Windows functions. Bruce C. Wright