home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4504 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!dialogic!gerry
  3. From: gerry@pizzabox.dialogic.com (Gerry Lachac)
  4. Subject: Re: Linking 16-bit Code with 32-bit code
  5. Message-ID: <1992Aug28.141702.18640@dialogic.com>
  6. Sender: news@dialogic.com (Netnews)
  7. Organization: Dialogic Corporation
  8. References: <1992Aug27.215047.28937@natinst.com> <1992Aug28.014647.11813@athena.mit.edu>
  9. Date: Fri, 28 Aug 92 14:17:02 GMT
  10. Lines: 15
  11.  
  12. In article <1992Aug28.014647.11813@athena.mit.edu> bjaspan@athena.mit.edu (Barr3y Jaspan) writes:
  13. >You need to declare the 16 bit functions as such explicitly, and declare all
  14. >pointer arguments at 16 bit pointers.  For example, if you were calling a 16
  15. >bit version of strcpy from 32 bit code, you would need to declare it like this:
  16. >
  17. >_Cdecl _Far16 char * _Seg16 strcpy(char * _Seg16, char * _Seg16);
  18.  
  19.  
  20. But, and someone please correct me if I'm wrong, you *CANNOT* link a
  21. 16-bit OBJ with a 32-bit OBJ.   16-bit code that is called by 32-bit
  22. code must be inside a DLL.
  23.  
  24. I haven't worked with this explicitedly yet, but I remember reading
  25. this in the migration guide. (or suffering delusions :-)
  26.  
  27.