Solved

Call a 16bit dll from Delphi 2.0

Posted on 1997-11-05
1
161 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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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