Article View: comp.lang.modula2
Article #1119OS/2 Family Apps in TopSpeed M2
From: Jan Sepp
Date: Sat, 01 Sep 1990 16:38
Date: Sat, 01 Sep 1990 16:38
22 lines
1506 bytes
1506 bytes
I am trying to create a family application using the Topspeed
Modula-2 compiler for OS/2, starting with a modest HELLO.MOD
containing one line: IO.WrStr('Hello world!');
I have copied the BIND.EXE and the API.LIB from the IBM OS/2 toolkit
into my work directory, and the Topspeed BINDTSC.FIX file as well.
I compile and link the program as usual, and then bind it as follows:
BIND HELLO API.LIB \OS2\DOSCALLS.LIB /N @BINDTSC.FIX
The bind runs ok, the program has grown in size and still runs under
OS/2, but running it from the DOS box returns the message:
The Application Program Interface (API) entered
will only work in IBM Operating System/2 mode
If I replace IO.WrStr by Vio.WrtCharStr('Hello world! ', 12, 0, 0, 0)
it runs fine from the DOS box as well. So, calling the standard OS/2
API seems ok, but a call to the Topspeed library not.
Any suggestions what I am doing wrong??
--
uucp: uunet!m2xenix!puddle!2!512!20.0!Jan.Sepp
Internet: Jan.Sepp@p0.f20.n512.z2.fidonet.org
Technical Details
Message-ID:
<1119.26E54D8A@puddle.fidonet.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p0.f20.n512.z2.fidonet.org!Jan.SeppShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p0.f20.n512.z2.fidonet.org!Jan.Sepp From: Jan.Sepp@p0.f20.n512.z2.fidonet.org (Jan Sepp) Newsgroups: comp.lang.modula2 Subject: OS/2 Family Apps in TopSpeed M2 Message-ID: <1119.26E54D8A@puddle.fidonet.org> Date: 1 Sep 90 16:38:40 GMT Sender: ufgate@puddle.fidonet.org (newsout1.26) Organization: FidoNet node 2:512/20.0 - SDG 9, Amsterdam Lines: 22