Jump to content
Excelsior Forums
Sign in to follow this  
gerojeng

How to use xfunction call dll writen in delphi ?

Recommended Posts

I use delphi to create a test.dll

in the dll , there have

? ?

? ? ?function sayhello(a:integer) : Integer ; stdcall ;

and I use

xFunction p=new xFunction("test.dll","int sayhello(int)");

but I always get FunctionNotFoundException

Whats going on ? thank for your looking.

Share this post


Link to post
Share on other sites

The external name of the function exported from DLL depends on the Delphi compiler. Open this DLL in notepad and look for the strings that contain 'sayhello'. Probably, the external name of the function would look like "_sayhello@4".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×