home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11643 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  1.5 KB

  1. Path: sparky!uunet!pilchuck!fnx!nazgul!bright
  2. From: bright@nazgul.UUCP (Walter Bright)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Symbol libraries in dos
  5. Message-ID: <1545@nazgul.UUCP>
  6. Date: 27 Dec 92 00:21:29 GMT
  7. References: <724051521.AA09634@csource.oz.au>
  8. Reply-To: bright@nazgul.UUCP (Walter Bright)
  9. Organization: Zortech, Seattle
  10. Lines: 22
  11.  
  12. In article <724051521.AA09634@csource.oz.au> John.Gibney@f386.n632.z3.fidonet.org (John Gibney) writes:
  13. /In VAX/VMS, symbol libraries are used to return status
  14. /values, etc. for the results of calls to system services.
  15. /This allows programs to test against, for example,
  16. /SS$_NORMAL, for a success status.
  17. /One of the main advantags of this is to aid program
  18. /maintenance - if the developers of the O/S decide to change
  19. /a status value, existing programs won't break - they will
  20. /(probably) only need to be relinked.
  21. /I would like to know if anyone has any ideas on how a
  22. /similar scheme may be implemented in DOS.  I have 1 idea of
  23. /using #include files, but I think that's a bit gauche,
  24. /sometimes...  Any other clues?
  25.  
  26. Handling of huge pointers is done just this way. Externals __AHINC
  27. and __AHSHIFT are referenced which provide the information at runtime
  28. as to the gaps between selector values. This enables the same program
  29. to run in real mode and various protected modes (as in Windows PM,
  30. DOS extender PM, and 16 bit OS/2). The values of __AHINC/SHIFT are
  31. provided either by the runtime library or are exported by the operating
  32. system DLL.
  33.  
  34.