Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!linac!uwm.edu!csd4.csd.uwm.edu!tanith From: tanith@csd4.csd.uwm.edu (Michael D Kretzer) Newsgroups: comp.os.os2.programmer Subject: Re: Beginner's Questions Message-ID: <8179@uwm.edu> Date: 8 Dec 90 09:09:42 GMT Sender: news@uwm.edu Distribution: usa Organization: University of Wisconsin - Milwaukee Lines: 26 Originator: tanith@csd4.csd.uwm.edu >1. How can I compile a file that will run under DOS, Windows and OS2? > I would like to include EGA resolution graphics with color. The > program also includes BIOS calls. I set the compiler flags -G2 -Lr > -AL(plus many others) and then tried to use the BIND command, but it > gave me an invalid executable file error. Compiling ONE file that can run under DOS, Windows and OS/2, would take some doing and would be very difficult if not impossible if you're working with the various Presentation Manager Flavors. As far as full-screen programs go (which I assume you are working with right now), to write something that would work in OS/2 and DOS, you need to use only Family API functions in your program in order to use the BIND command, and then you would run it as a DOS program in Windows. You cannot use BIOS calls (at least the ones that you're used to using in DOS) in OS/2, you must translate them to API functions, and their ilk if you want to program in OS/2. >3. Is Emacs(GNU flavor) available? Yes, it's available by anonymous ftp on isca.icaen.uiowa.edu, they also have several OS/2 binaries and source in a directory something like /pub/os2... >4. Can the OS/2 DOS box be run in a window instead of full-screen? As far as I know, you cannot run the OS/2 DOS box in a window.