home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3863 < prev    next >
Encoding:
Text File  |  1992-07-29  |  3.5 KB  |  80 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!sun4nl!venlo!oce-rd1!st1-par!rpr
  3. From: rpr@st1-par.oce.nl (Rob Prikanowski)
  4. Subject: Re: emx 0.8d, OS/2 API
  5. Message-ID: <1992Jul29.094235.6803@oce.nl>
  6. Sender: news@oce.nl (USENET News System)
  7. Organization: OCE Nederland B.V.
  8. References: <1992Jul28.140631.1@ntuvax.ntu.ac.sg>
  9. Date: Wed, 29 Jul 92 09:42:35 GMT
  10. Lines: 68
  11.  
  12. In article <1992Jul28.140631.1@ntuvax.ntu.ac.sg> bz7004742@ntuvax.ntu.ac.sg (Roland Yeo) writes:
  13. >Problem #1: I found I only have \OS2\DOSCALLS.LIB and \OS2\DLL\DOSCALL1.DLL
  14. >Nowhere can I find DOSCALLS.DLL. Is this normal? When I did a test prgm to
  15. >do DosLoadModule to load DOSCALLS, it works. What is exactly happening?
  16. >There's no DOSCALLS.DLL as far as I can see.
  17.  
  18. Don't know, I'm not at home so I can't check this.
  19.  
  20. >Problem #2: In the first paragraph above, there's a value <func #> which
  21. >is to be the ordinal number of the function. Does this imply the position
  22. >of the function in the DLL? Which do I find this piece of information?
  23.  
  24. I had the same problem you have. I found no relation between the ordinal number
  25. for an API call and the contents of the dll that contains the call.
  26. After my query here, I got two answers (thanks Jay and Christian) which were
  27. both helpfull. Here are the two options you have:
  28.  
  29. 1) Get a file called watc_lib.zoo from ftp-os2.nmsu.edu. It's somewhere in
  30.    the OS/2 2.0 programming directory.
  31.    This file contains lines of the following form:
  32.  
  33.       ++<func>.<dll>.<number>
  34.  
  35.    where <func> is the function name, <dll> is the dll name containg this
  36.    function, and <number> is the ordinal number you need.
  37.  
  38. 2) Get a file called icc2gcc_1_1.zip from ftp-os2.nmsu.edu. It was in the
  39.    downloads directory when I got it, but it will probably show up in the OS/2
  40.    2.0 programming directory.
  41.    This file contains a replacement libos2.a for emx and I'm pretty sure that
  42.    it contains all the OS/2 API calls.
  43.  
  44. Of course after adding the API calls to your library, the biggest problem will
  45. be to update the os2.h file. Creating funtion prototypes is not that difficult.
  46. However, finding out the values for all kind of flag arguments and the layout
  47. of structs that are passed to the API calls is a real PITA.
  48.  
  49. >Overall, is someone actively adding OS/2 API into EMX?
  50.  
  51. Yes, I do. I added the API calls to create a message box and some of the calls
  52. dealing with dialog boxes. Also the calls dealing with switch entries are
  53. working right now. However, as mentioned before, it took a considerable amount
  54. of time to get the flags and struct right. So I decided to order the OS/2 2.0
  55. Developers Toolset and I hope to find some decent documentation on all API
  56. calls, full blown versions of the header and library files, and some additional
  57. tools.
  58.  
  59. I could post or mail the contents of my local os2.h if anybody is interested.
  60.  
  61. Greetings,
  62.  
  63. Rob
  64. ................................................................................
  65.  
  66.      |   |     Rob Prikanowski (rpr@oce.nl)
  67.    -[ ]-[ ]-      
  68.      |   |     Oce Nederland B.V.         Direct dial: +31 77 593530
  69.                P.O. Box 101               Telefax    : +31 77 595450
  70.                5900 MA Venlo
  71.                The Netherlands
  72.  
  73. ................................................................................
  74.  
  75.       ###########################################################
  76.       #  This note does not necessarily represent the position  #
  77.       #     of Oce-Nederland B.V. Therefore no liability or     #
  78.       #      responsibility for whatever will be accepted.      #
  79.       ###########################################################
  80.