[comp.lang.modula2] OS/2 Family Apps in TopSpeed M2

Jan.Sepp@p0.f20.n512.z2.fidonet.org (Jan Sepp) (09/01/90)

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

Captain.Moonrock@p0.f11.n106.z1.fidonet.org (Captain Moonrock) (09/05/90)

I'd like to say that I could help, but I just managed to track down 
a shareware modula-2 compiler so that I could mess around with it 
and see what modula-2 is like.
 



--  
uucp: uunet!m2xenix!puddle!106!11.0!Captain.Moonrock
Internet: Captain.Moonrock@p0.f11.n106.z1.fidonet.org