• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

dll registration...

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
tomer_engel
Asked:
tomer_engel
1 Solution
 
robert_marquardtCommented:
stdcall is missing in the external declaration
0
 
intheCommented:
this may help you understand better:

http://www.torry.ru/samples/samples/os/dllexampl.zip
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now