Using a 32 bit DLL in a 16 bit BPW application 
Author Message
 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.





Wed, 18 Jun 1902 08:00:00 GMT  
 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=-



Wed, 18 Jun 1902 08:00:00 GMT  
 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



Quote:
> Hi,

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



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Using 32 bit DLL in 16 bit BPW application

2. Sybase : slow using 32 bit - fast using 16 bit

3. Upgrade 16-bit application to 32-bit

4. Upgrade 16-bit application to 32-bit

5. 16-bit Application and 32-bit ODBC

6. Calling 16 bit Dll from 32 bit program

7. thunking (calling 16 bit dll's from 32 bit app)

8. Convert 32 bit component to 16 bit ??

9. BDE 32-bit & 16-bit

10. 16 bit ODBC drivers in the 32 bit environment

11. 32 bit bde with 16 bit odbc

12. CRC 16-bit and 32-bit

 

 
Powered by phpBB® Forum Software