🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to link programs which do not switch to full screen ?

#2660
From: Bruce Kitchin
Date: Tue, 22 Dec 1992 21:21
31 lines
2105 bytes
Ernst Kloecker (ernst@opal.cs.tu-berlin.de) wrote:
: 
: I am using Microsoft C 6.00 on OS/2 1.32. Whenever I link a text mode OS/2
: program, it switches to full screen after being started. I assume I am linking
: with the wrong libraries.
: 
: Which library do I have to link to make my program run in an ordinary OS/2
: window ?
: 
The problem is not the libraries but the way you are linking.  There are
three approaches to solve this problem.  There is a utility that I got
with MSC 6.0 (since I don't have MSC on my system now, I can't be sure
the name).  With OS/2 2.0 the utility is called MarkExe and when run
with no arguments gives you some help.  By default the program is linked
as NOTSPECIFIED.  When you start such a program in a window, it flips to
full screen for the duration of that program.  If you use markexe to
change it to WINDOWCOMPAT it will run either full screen or windowed
depending on which mode you were in when you started it.

However, you can link the program to avoid this.  One way is to
put the option /PMTYPE:VIO in the link (same place you would put /CO
or /MAP).  This is the simplest.  If you use a def file you can put 
the word WINDOWCOMPAT in the name statement after the program's name.

As to why they do this, I'm not sure.  I suppose that since some programs
do non-standard stuff such as take over complete control of the video
to do graphics, they figured that it was safer to not window a program
unless it says it is ok.  This goes back to OS/2 1.1 and is really a
Microsoft artifact.

Good luck.
Technical Details
Message-ID: <1h80t7INN2mm@hpscit.sc.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!kitchin
References: <1992Dec22.193053.12880@cs.tu-berlin.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!kitchin
From: kitchin@lf.hp.com (Bruce Kitchin)
Newsgroups: comp.os.os2.programmer
Subject: Re: How to link programs which do not switch to full screen ?
Date: 22 Dec 1992 21:21:43 GMT
Organization: Hewlett Packard Santa Clara Site
Lines: 32
Message-ID: <1h80t7INN2mm@hpscit.sc.hp.com>
References: <1992Dec22.193053.12880@cs.tu-berlin.de>
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]