Path: utzoo!mnetor!uunet!husc6!bbn!rochester!ur-tut!sunybcs!boulder!murillo From: murillo@sigi.Colorado.EDU (Rodrigo Murillo) Newsgroups: comp.sys.ibm.pc Subject: Re: OS/2 Programming Considerations. Message-ID: <5073@sigi.Colorado.EDU> Date: 25 Mar 88 16:20:10 GMT Reply-To: murillo@boulder.Colorado.EDU (Rodrigo Murillo) Distribution: na Organization: University of Colorado, Boulder Lines: 20 In article <1620@ncsuvx.ncsu.edu> sam@ncsuvx.ncsu.edu (Sam "SammyBake" Moore) writes: >What is the best way to support code for both OS/2 and DOS? The simple example >program that comes with the toolkit that creates a DOS executable from an OS/2 >executable leads me to think that is not a reasonable way to do it. The program >does very little, just some standard I/O. In OS/2 it is about 9K in DOS it is >about 42K. There is something that is called a Family Application. This is a program that is written in such a way that it will run under DOS and OS/2 without changes. The problem is that programs that are coded this way have to be very generic, and not use OS dependent resources. Good targets for Family Applications are things like compilers and line editors and the like. They treat the screen the same way (line by line) and use basic file i/o. I believe that C/2 compiler will have additional info on this. -- _______________________________________________________________________________ Rodrigo Murillo, University of Colorado - Boulder (303) 761-0410 murillo@boulder.colorado.edu | ..{hao|nbires}!boulder!murillo ( Machines have less problems. I'd like to be a machine. -- Andy Warhol )