[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Calling a 16 bit DLL from Delphi 2

I'm trying to call a 16 bit DLL from my Delphi 2 application.  I'm getting the program to compile ok but when I run it I get a "Debugger kernel error. Error code: 1."I've also tried to call functions in the mmsystem dll but I get the same error.  Any ideas anyone ?
0
Dazza051197
Asked:
Dazza051197
1 Solution
 
icampbe1Commented:
You can't call a 16-bit DLL from a 32-bit app.  If you can, compile the dll in 32-bits (sounds like you might not be able to do that).  The other alternative is to use 'generic' thunking.

Ian C.

0
 
Dazza051197Author Commented:
What the heck is Generic Thunking ?  Guess I'll compile it as an exe and pass things over via the command line then.  Not as tidy as a DLL but I need to call a Delphi 16 bit app from Delphi 32.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now