Board index » delphi » Using a 32 bit DLL in a 16 bit BPW application

Using a 32 bit DLL in a 16 bit BPW application

Hi,

Is it possible to use a 32 bit DLL in 16 bit Borland Pascal for
Windows?

I've tried some things but running the program from the BPW IDE gives
an application error and starting the application by double-clicking
it in the Windows NT Explorer gives me a message that the 16 bit
programm tries to use a 32 bit DLL!

By the way: It's not possible to rewrite or recompile the 32 bit DLL
to  a 16 bit because the DLL is an API to a Windows NT device driver
we created.

I hope anyone has an answer or clue, because we don't want to rewrite
to Object Windows pascalcode to 32 bit Delphi code (80.000 lines of
code).

Thank you,

Frank Putman,
Keyword Info Systems BV,
The Netherlands.

e-mail 1: fput...@bart.nl
e-mail 2: kerst...@keyword.nl

 

Re:Using a 32 bit DLL in a 16 bit BPW application


Hi Frank!

Quote

> Hi,

> Is it possible to use a 32 bit DLL in 16 bit Borland Pascal for
> Windows?

> I've tried some things but running the program from the BPW IDE gives
> an application error and starting the application by double-clicking
> it in the Windows NT Explorer gives me a message that the 16 bit
> programm tries to use a 32 bit DLL!

You should use an UniversalThunk feature of the Win32API to call your
favorite
16-bit DLL functions from a 32-bit program and vice versa.
Look at UTRegister function.

Bye-bye.

  Dmitry.
-=Moscow=-
  -=RU=-

Re:Using a 32 bit DLL in a 16 bit BPW application


Hi,

Search for call32nt.zip on the net
(f.e. http://ftpsearch.ntnu.no/ftpsearch )
It is not too easy to use ;-(
But with it you can address Win95 long file names directly calling the
Win95 DLLs (wo. INT21h and some old-and-slow compatibility functions). That
longfil unit is also there.
It works with BP and Delphi, too

Bye,
        Balazs Racz
        mailto:br...@mmt.bme.hu

Frank Putman <fput...@bart.nl> wrote in article
<336e17d9.80339...@news.bart.nl>...

Quote
> Hi,

> Is it possible to use a 32 bit DLL in 16 bit Borland Pascal for
> Windows?

Other Threads