Solved

dll  registration...

Posted on 2000-04-16
2
147 Views
Last Modified: 2010-04-04
hello
I wrote a simple dll,I have  only one functionin the file:

function add(X,Y:Integer):Integer; stdcall;
begin
  add := x+y;
end;

and and exports clause:
exports
  add;

and i cant use it in any application.do i have to register it somehow? or do i have a  mistake calling the function inside the application:      
function add(X,Y:Integer):Integer; external 'DLL1.DLL';

when I try  callind the 'add' function--it throws an error
-"this program preformed an...."
0
Comment
Question by:tomer_engel
2 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 2720529
stdcall is missing in the external declaration
0
 
LVL 17

Accepted Solution

by:
inthe earned 15 total points
ID: 2720538
this may help you understand better:

http://www.torry.ru/samples/samples/os/dllexampl.zip
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

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 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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

23 Experts available now in Live!

Get 1:1 Help Now