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