Board index » delphi » Calling 16 bit DLL from Delphi 2

Calling 16 bit DLL from Delphi 2

Hi

Does anyone have Pascal source code for accessing a 16 bit DLL from a 32 bit
Delphi application ?
It is mission critical - so please help me !

JSK
j...@vd.dk
j...@post6.tele.dk

 

Re:Calling 16 bit DLL from Delphi 2


In article <677td5$7g...@news.dknet.dk>, j...@vd.dk says...

Quote

>Hi

>Does anyone have Pascal source code for accessing a 16 bit DLL from a 32
bit
>Delphi application ?
>It is mission critical - so please help me !

You cannot use16 bit dlls with delphi2

M.L.

Re:Calling 16 bit DLL from Delphi 2


In article <67f3qe$6b...@news.nettuno.it>, "M.Lolli"
<dor3...@iperbole.bologna.it> writes

Quote
>In article <677td5$7g...@news.dknet.dk>, j...@vd.dk says...

>>Hi

>>Does anyone have Pascal source code for accessing a 16 bit DLL from a 32
>bit
>>Delphi application ?
>>It is mission critical - so please help me !

>You cannot use16 bit dlls with delphi2

>M.L.

Someone asked this question a while ago (not sure whether it was in this
actual newsgroup though). I recall that one of the replies was to create
a 16-bit "wrapper" application using D1, which allows access to the
relevant DLL routines via one or more custom Windows messages.

You could then run the D1 application alongside your 32-bit D2
application on the 32-bit platform (Win 95 for instance), and use these
Windows messages to let the two apps talk to each other.

--
Steve Turner
Leeds, England

Re:Calling 16 bit DLL from Delphi 2


In article <677td5$7g...@news.dknet.dk>, j...@vd.dk says...

Quote

>Hi

>Does anyone have Pascal source code for accessing a 16 bit DLL from a 32
bit
>Delphi application ?
>It is mission critical - so please help me !

In article <67f3qe$6b...@news.nettuno.it>, dor3...@iperbole.bologna.it

Quote
(M.Lolli) writes:
>You cannot use16 bit dlls with delphi2

>M.L.

16 bit DLLs _can_ be called from 32 bit applications by using Thunking.

See EXE April 1996, p25, "32-bit Spelunking With Delphi 2.0" (note that
UK(spelunking) = pot-holing). Also see Delphi Magazine July 1996, p10, "beating
the System : Thunking for Profit & Pleasure". Both articles are by Dave Jewell.

Hope this helps

Alan Lloyd
alangll...@aol.com

Re:Calling 16 bit DLL from Delphi 2


Jesper,

A thunking layer is required to translate between 16-bit and 32-bit processes.
The MicroSoft thunk compiler does the dirty work, but it can only shelter you
from so much.  Thunking solutions use different models for NT, 95 and 32s.  This
is not a fast or elegant solution,

    Ashok Thirumurthi
    73060.3077.no.s...@compuserve.com

Quote
> Hi

> Does anyone have Pascal source code for accessing a 16 bit DLL from a 32 bit
> Delphi application ?
> It is mission critical - so please help me !

> JSK
> j...@vd.dk
> j...@post6.tele.dk

Other Threads