Link to home
Start Free TrialLog in
Avatar of Yevgen
Yevgen

asked on

Delphi and DLLs

I created a DLL and exported it using STDCALL.
Then, in the program i iported the function that i eported and when i tried to use it the program chrashed.

What could be the problem and how exactly do i write and use DLLs in Delphi...?

    Yevgeni...
Avatar of scrapdog
scrapdog
Flag of United States of America image

Did you import it using stdcall as well?
Avatar of Yevgen
Yevgen

ASKER

no i used: function funcname(i:integer):integer; export 'dllname.dll';
ASKER CERTIFIED SOLUTION
Avatar of scrapdog
scrapdog
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lukasz Zielinski
If there will be only one parameter or none, function call probably will be made correctly. But generally it works like scrapdog said.
ziolko.