Solved

Calling a 16 bit DLL from Delphi 2

Posted on 1997-07-23
2
214 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now