Board index » delphi » 16 bit DLL's in 2.0

16 bit DLL's in 2.0

Can 16 bit DLL's and 32 bit DLL's be used in Delphi 2.0 32 bit
applications.
Reason: multi language programming with older 16 bit compilers.

Can someone inform me aubout this.

Please answers to email: ouweh...@chem.leidenuniv.nl

Thanks,

Ben Ouwehand

 

Re:16 bit DLL's in 2.0


Quote
ben wrote:

> Can 16 bit DLL's and 32 bit DLL's be used in Delphi 2.0 32 bit
> applications.
> Reason: multi language programming with older 16 bit compilers.

32 bit DLL, no problem. 16 bit DLL must go through thunk. MSDN has
info on thunks, in addition, there's an article in Dr. Dobb's
Sourcebook (March/April I believe) about thunking. Windows NT won't
allow 32 bit code to call 16 bit code at all, security thing....

M.

--
Martin Larsson, author of several unknown utilities for DOS and Windows.
mailto:martin.lars...@delfi-data.msmail.telemax.no
http://www.delfidata.no/users/~martin
X.400:G=martin;S=larsson;O=delfi-data;P=msmail;A=telemax;C=no

Re:16 bit DLL's in 2.0


Quote
Martin Larsson wrote:

> ben wrote:

> > Can 16 bit DLL's and 32 bit DLL's be used in Delphi 2.0 32 bit
> > applications.
> > Reason: multi language programming with older 16 bit compilers.

> 32 bit DLL, no problem. 16 bit DLL must go through thunk. MSDN has
> info on thunks, in addition, there's an article in Dr. Dobb's
> Sourcebook (March/April I believe) about thunking. Windows NT won't
> allow 32 bit code to call 16 bit code at all, security thing....

Also, if you want to avoid all that thunking poo, you can use the
WM_COPYDATA windows message to communicate data between 16 and 32
bit apps.  I show an example of this in Delphi 2 Developer's Guide.
--

        -Steve Teixeira
         steix...@borland.com

Re:16 bit DLL's in 2.0


In article <31EA0977.6...@chem.leidenuniv.nl>, cea_...@chem.leidenuniv.nl
says...
.>
.>Can 16 bit DLL's and 32 bit DLL's be used in Delphi 2.0 32 bit
.>applications.
.>Reason: multi language programming with older 16 bit compilers.
.>
.>Can someone inform me aubout this.
.>
.>Please answers to email: ouweh...@chem.leidenuniv.nl
.>
.>
.>Thanks,
.>
.>Ben Ouwehand

Thunking may or may not be an easy process, but I didn't want to take the time
to find out, so what I did was write a 16-bit app that used the 16-bit DLL and
then called the 16-bit app from my 32-bit app.  Kind of the long way around,
but it served my purpose.

Chris

Re:16 bit DLL's in 2.0


Quote
Steve Teixeira wrote:

> Martin Larsson wrote:

> > ben wrote:

> > > Can 16 bit DLL's and 32 bit DLL's be used in Delphi 2.0 32 bit
> > > applications.
> > > Reason: multi language programming with older 16 bit compilers.

> > 32 bit DLL, no problem. 16 bit DLL must go through thunk. MSDN has
> > info on thunks, in addition, there's an article in Dr. Dobb's
> > Sourcebook (March/April I believe) about thunking. Windows NT won't
> > allow 32 bit code to call 16 bit code at all, security thing....

> Also, if you want to avoid all that thunking poo, you can use the
> WM_COPYDATA windows message to communicate data between 16 and 32
> bit apps.  I show an example of this in Delphi 2 Developer's Guide.

Ahhh, spoken like a true businessman trying to plug his book, and
not the great borland support engineer that he actually is.

If you're going to use your Borland account, wouldn't it be better
to actually "help" instead of routing it off to something you wrote?
I have no problems with you telling somebody to buy your book, just
not with the Borland flag over your head.  

-joe

Re:16 bit DLL's in 2.0


Sir Joseph of Greenwood wrote:

Quote

> Steve Teixeira wrote:

> > Also, if you want to avoid all that thunking poo, you can use the
> > WM_COPYDATA windows message to communicate data between 16 and 32
> > bit apps.  I show an example of this in Delphi 2 Developer's Guide.

> Ahhh, spoken like a true businessman trying to plug his book, and
> not the great borland support engineer that he actually is.
> If you're going to use your Borland account, wouldn't it be better
> to actually "help" instead of routing it off to something you wrote?
> I have no problems with you telling somebody to buy your book, just
> not with the Borland flag over your head.

Please. Everybody who's been following this newsgroup for some time
knows that Steve uses his own time, of his own free will to sit and
read and answer posts here. Think hiss post as having a standard:
"I don't speak for Borland at the moment, they just give me an easy
 route to the Usenet."

M.

--
Martin Larsson, author of several unknown utilities for DOS and Windows.
mailto:martin.lars...@delfi-data.msmail.telemax.no
http://www.delfidata.no/users/~martin
X.400:G=martin;S=larsson;O=delfi-data;P=msmail;A=telemax;C=no

Other Threads