🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

16-BIT VIO APIs IN 32-BIT CODE

#2114
From: Uma Arunkumar
Date: Fri, 16 Oct 1992 15:06
28 lines
1234 bytes

I want to call 16bit API calls especially relating
to VIO and KBD.  
The manual says 
   OS/2 2.0 provides support for the following 16 bit subsystems:
     Vio
     Kbd
     Mou
     Mon(monitor functions)

I want to use these 16 bit API`s like VIoGetMode, VioWriteCharStringAt etc.,
in my 32 bit code.  
I am compiling using 32bit CSet/2 compiler.
(i) What are the include files for VIO subsytem? 
    How exactly I should do it?
(ii) Can I use link386 or just link?
(iii) I compiled using link386 giving os2286.lib and os2386.lib.
It compiled and linked fine.  But when I run it, when the program
gets to the 16 bit API call, it displays "access violation".
It gets aborted.

Can anybody throw light on how to do this stuff?

My email addr is uma@natinst.com

Thanks in advance.
uma.
Technical Details
Message-ID: <1bmlp1INNkts@falcon.natinst.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sun-barr!cs.utexas.edu!natinst.com!natinst.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sun-barr!cs.utexas.edu!natinst.com!natinst.com!not-for-mail
From: uma@natinst.com (Uma Arunkumar)
Newsgroups: comp.os.os2.programmer
Subject: 16-BIT VIO APIs IN 32-BIT CODE
Date: 16 Oct 1992 10:06:09 -0500
Organization: National Instruments, Austin, TX
Lines: 29
Distribution: world
Message-ID: <1bmlp1INNkts@falcon.natinst.com>
NNTP-Posting-Host: falcon.natinst.com