?
Solved

dll  registration...

Posted on 2000-04-16
2
Medium Priority
?
155 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
[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
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 30 total points
ID: 2720538
this may help you understand better:

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 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