Article View: comp.os.os2.programmer
Article #1218Re: Linking 16-bit Code with 32-bit code
From: Gerry Lachac
Date: Fri, 28 Aug 1992 14:17
Date: Fri, 28 Aug 1992 14:17
14 lines
1145 bytes
1145 bytes
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 :-)
Technical Details
Message-ID:
<1992Aug28.141702.18640@dialogic.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!dialogic!gerryReferences:
<1992Aug27.215047.28937@natinst.com> <1992Aug28.014647.11813@athena.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!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