Solved

Call a 16bit dll from Delphi 2.0

Posted on 1997-11-05
1
172 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

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!

Question has a verified solution.

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

Suggested Solutions

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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