Solved

Call a 16bit dll from Delphi 2.0

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month4 days, 21 hours left to enroll

635 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