🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2113

Re: Bound Executables

#2113
From: Bruce Kitchin
Date: Fri, 16 Oct 1992 14:48
33 lines
1896 bytes
Doug Smith (jdsmith@novell.com) wrote:
: Is there a way to create bound executables (ones that run in both DOS and OS/
: 2) with IBM's CSET/2?  I can do it with MSC 5.1, but the OS/2 executable 
: switches to full screen mode when I run it.
: 
: Doug Smith
: Novell
: jdsmith@novell.com

CSET/2 - can't do.  It generates code for the 32-bit system rather than
MS compatible 16-bit code.  I've seen explicit statements in IBM documents
or annoucements that it wouldn't do FAPI programs.

With any OS/2 compatible 16-bit compiler (MSC 5.1 / 6.0, ZTC, ...), you
can generate FAPI apps.  The technique to use is the same as you
use with MSC 5.1

Your problem with switching to full screen is the executable type of
your program.  There are two approaches.  First during link add the
option /PMTYPE:VIO   This marks the executable as able to run in an
OS/2 window.  The default is that it must run full screen.

The other way (after the fact) is to run the utility MARKEXE (this
comes with MSC and with C SET/2).  You run it as:

   Markexe WINDOWCOMPAT  <prog>.exe

where <prog> is the name of your program file.  Case is not 
significant.  This will do the same as the link option.  You
can change your mind if you find a program misbehaves in a window
by specifying NOTWINDOWCOMPAT.

This WINDOWCOMPAT stuff is the same in C SET/2 for 32 bit executables.
Technical Details
Message-ID: <Bw7yHF.3JH@scd.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!caen!sdd.hp.com!scd.hp.com!hpscdc!kitchin
References: <jdsmith.32.719168292@novell.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!caen!sdd.hp.com!scd.hp.com!hpscdc!kitchin
From: kitchin@avo.hp.com (Bruce Kitchin)
Newsgroups: comp.os.os2.programmer
Subject: Re: Bound Executables
Message-ID: <Bw7yHF.3JH@scd.hp.com>
Date: 16 Oct 92 14:48:49 GMT
Article-I.D.: scd.Bw7yHF.3JH
References: <jdsmith.32.719168292@novell.com>
Sender: news@scd.hp.com (News Account)
Distribution: all
Organization: Hewlett-Packard, Santa Clara Division
Lines: 33
X-Newsreader: TIN [version 1.1.3 PL6]