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...
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...
Did you import it using stdcall as well?
ASKER
no i used: function funcname(i:integer):intege r; export 'dllname.dll';
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If there will be only one parameter or none, function call probably will be made correctly. But generally it works like scrapdog said.
ziolko.
ziolko.