Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Calling a 16 bit DLL from Delphi 2

Posted on 1997-07-23
2
220 Views
Last Modified: 2010-04-04
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
Comment
Question by:Dazza051197
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 100 total points
ID: 1339625
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
 
LVL 1

Author Comment

by:Dazza051197
ID: 1339626
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 154
drawing animated level bar based on numbers 3 104
FMX and jaudiotracker playing memory stream 29 87
Firemonkey webbrowser scrollbars ? 1 50
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question