[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Calling a 16 bit DLL from Delphi 2

Posted on 1997-07-23
2
Medium Priority
?
229 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
[X]
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
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 300 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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