home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4775 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  32 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!news.hawaii.edu!hale!tholen
  3. From: tholen@hale.ifa.hawaii.edu (Dave Tholen)
  4. Subject: DosDevIOCtl
  5. Message-ID: <1992Sep7.014647.4906@news.Hawaii.Edu>
  6. Sender: root@news.Hawaii.Edu (News Service)
  7. Nntp-Posting-Host: hale.ifa.hawaii.edu
  8. Organization: University of Hawaii
  9. Date: Mon, 7 Sep 1992 01:46:47 GMT
  10. Lines: 20
  11.  
  12. I have a 16-bit OS/2 application that I would like to recompile for 32-bit
  13. OS/2.  This application currently uses KbdCharIn to retrieve keystrokes
  14. from the keyboard.  There is no 32-bit version of KbdCharIn, though it
  15. appears that DosDevIOCtl, Category 4, Function 74H, "Read Character Data
  16. Records" may be a satisfactory substitute.
  17.  
  18. I have documentation for the 16-bit DosDevIOCtl in the form of Ray Duncan's
  19. book and the include files for the 16-bit compiler, but all I have at the
  20. moment for the 32-bit DosDevIOCtl are the include files for the 32-bit
  21. compiler.  Both Duncan's book and the include file list five arguments to
  22. the 16-bit DosDevIOCtl, but the 32-bit compiler's include file lists nine
  23. arguments.  I've concluded that DosDevIOCtl has been changed and that I
  24. need more documentation before attempting to determine whether DosDevIOCtl
  25. will serve as a replacement for KbdCharIn.  Calling the 16-bit KbdCharIn
  26. API from the 32-bit version of the program is an alternative that I'd like
  27. to avoid, because my compiler doesn't support it at this time.
  28.  
  29. For a short term solution, can somebody tell me what the syntax is for the
  30. 32-bit DosDevIOCtl call?  For a long term solution, can somebody recommend
  31. an OS/2 2.0 counterpart to Ray Duncan's book?
  32.