Solved

dll  registration...

Posted on 2000-04-16
2
146 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

18 Experts available now in Live!

Get 1:1 Help Now