home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7202 < prev    next >
Encoding:
Text File  |  1992-12-25  |  2.1 KB  |  41 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!access.usask.ca!sue!phenix.cc.uregina.ca!craig
  3. From: craig@phenix.cc.uregina.ca (Craig Knelsen)
  4. Subject: Is GA version of ACDI.DLL ok?
  5. Summary: Run-time linking of ACDI DLL doesn't work
  6. Message-ID: <1992Dec25.220855.782927@sue.cc.uregina.ca>
  7. Sender: news@sue.cc.uregina.ca
  8. Date: Fri, 25 Dec 1992 22:08:55 GMT
  9. Reply-To: craig@phenix.cc.uregina.ca (Craig Knelsen)
  10. Organization: Does it matter?
  11. Keywords: ACDI run-time linking
  12. Lines: 27
  13.  
  14. I am trying to port an OS/2 1.3EE app. to OS/2 2.0 using C Set/2. I have
  15. picked up a file called "acdi32.h" from IBM which contains the necessary
  16. definitions to access ACDI from a 32-bit app. If I use load-time linking
  17. to \cmlib\dll\acdi.dll, my requests work fine. However if I use run-time
  18. linking (via DosLoadModule and DosQueryProcAddr) my requests fail. I have
  19. used IPMD to step through test cases I wrote for both load-time and run-time
  20. linking and have discovered a peculiar thing. I have found that if I use
  21. run-time linking, the 16-bit address for ACDI gives an offset of 0x0000 but
  22. if I use load-time linking, the offset is 0x003a. The two entry points
  23. have similar prolog code except that the run-time link version does *not*
  24. store the passed ACDI parameter block pointer into local storage (I believe).
  25. After the prolog, the two entry points merge to the same address. As a
  26. result, the parameter block that I pass (via a pointer) to ACDI does not
  27. get affected when I use run-time linking to ACDI.DLL. From what I can
  28. determine, DosQueryProcAddr() seems to be returning the entry point for
  29. a routine called RAAMNGR rather than for the ACDI entry point I requested.
  30.  
  31. I am using the GA version of ACDI.DLL dated March 5/92. Has anyone been
  32. able to successfully run-time link to this DLL in a 32-bit app? Is there
  33. a later version of ACDI.DLL out there? Anyone know when IBM will finally
  34. get around to a 32-bit version of ES?
  35.  
  36. Responses via E-mail are preferred. Thanks...
  37. -- 
  38.  
  39. Craig Knelsen        craig@phenix.cc.uregina.ca
  40.             Craig_Knelsen@f20.n140.z1.fidonet.org
  41.