Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Call a 16bit dll from Delphi 2.0

Posted on 1997-11-05
1
Medium Priority
?
176 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
[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
1 Comment
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 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