🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12639

Re: linking 32 bit modules with 16 bit modules

#12639
From: Chris Hill
Date: Tue, 25 Nov 2003 03:21
17 lines
1645 bytes
On Mon, 24 Nov 2003 16:59:12 -0500, Jonathan Arnold
<jdarnold@buddydog.org> wrote:
>You're right that is a problem. See, C++Builder only does Win32 apps, and
>getting Win32 apps to communicate with a 16 bit DLL is painful, ugly, and
>non-portable even between Win9x and WinNT. There are two methods of
>"thunking" and one works on WinNT and one works on Win95. It ain't very
>fun.

And the WinNT one (generic thunks) does not support calling 16-bit
code from 32-bit code, so thunking is not really the solution to this
particular problem.  The 16-bit DLL would need to be loaded in a
16-bit process that communicated via IPC with the 32-bit process.
Obviously C++Builder's compiler can't be used to author the 16-bit
host EXE, but it could be used on the 32-bit side.

Chris Hill
Chris244@aol.com
Technical Details
Message-ID: <3fc2c894.1918607511@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fbe87b4@newsgroups.borland.com> <3fc27f2f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,be77a85f0ba0e718
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-24 19:39:20 PST
From: Chris244@aol.com (Chris Hill)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: linking 32 bit modules with 16 bit modules
Date: Tue, 25 Nov 2003 03:21:40 GMT
Message-ID: <3fc2c894.1918607511@forums.borland.com>
References: <3fbe87b4@newsgroups.borland.com> <3fc27f2f$1@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 12.221.66.183
X-Trace: newsgroups.borland.com 1069730499 12.221.66.183 (24 Nov 2003 19:21:39 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail