home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / tools / 1460 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.2 KB

  1. Path: sparky!uunet!math.fu-berlin.de!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Thomas_Hornschuh
  2. Date: Wed, 18 Nov 92 03:45:12 +0100
  3. From: Thomas_Hornschuh@softstream.fido.de (Thomas Hornschuh)
  4. Subject: Re: BC++ far* default in medi
  5. Message-ID: <1b9d9f42@p1.f36.n245.z2.fidonet.org>
  6. References: <18657@ksr.com>
  7. Newsgroups: comp.os.ms-windows.programmer.tools
  8. X-Comment-To: kenyee@sneakers (Ken Yee)
  9. Organization: SoftStream Development, Dortmund, Germany 
  10. Lines: 13
  11.  
  12. KY>    possible to do a FAR PASCAL varargs procedure exportable from a DLL?
  13. KY>    when calling this procedure from inside the library, the parameters
  14. KY>    come in as zeros.
  15. KY>    I hacked it by making the exports non-varargs, but it's ugly.
  16.  
  17. Pascal procedure never can have vargargs, because with the pascal calling 
  18. convention the called procedure must clean up the stack. But only the caller 
  19. knows how much data was passed...
  20.  
  21. If you want to export a function with variable number of arguments simply 
  22. remove the PASCAL keyword. The function will now use C callling conventions. 
  23. PASCAL is not a must for a exported funtion, only a convention.
  24.  
  25.