Solved

Call a 16bit dll from Delphi 2.0

Posted on 1997-11-05
1
166 Views
Last Modified: 2010-04-04
How do I call a procedure or a function in a 16 bit dll ?
0
Comment
Question by:lpd
1 Comment
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 100 total points
ID: 1349587
Lpd,

In your Implementation section...

function BlipBlat: Integer; external 'DLLNAME' name 'DLLFUNCTIONNAME');

In the example above, "BlipBlat" is what YOU want the function to be known as to your program, the Integer is the datatype returned from the DLL, 'DLLNAME' is the actual name of the DLL and 'DLLFUNCTIONNAME' is the name of the function within the .DLL that you want to call. If there are several functions they will have to be declared seperately.

Be careful about calling 16 bit code in Win95 & NT.

Good luck with your project!
Pegasus
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

11 Experts available now in Live!

Get 1:1 Help Now