Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error when calling an externa function i a DLL

259 views
Skip to first unread message

mariafolkesson

unread,
Sep 25, 2006, 11:27:37 AM9/25/06
to
Hi!
I'm trying to use an external function in my application.
I have 'declared' the function in Global External Functions
as

FUNCTION long snod25x(string host,string port,string
user,string passwd, string cert, string cacert,string
nodtjanst,string arg,string extra,string result, long
resultbuf) LIBRARY "sn25.dll"

When I try to call it, in runtime, I get the following error
message:

PowerBuilder Application Execution Error (R0021)
Application terminated.
Error: Bad runtime function reference at line 8.

Line 8 is the row where I try to call the function snod25x.
Does anyone know what is wrong and how I can solve this
problem?

Thanks in advance for your help!
Maria

fisher

unread,
Sep 25, 2006, 2:21:39 PM9/25/06
to
Hi,

first, You do not have to send the same message to be noticed.
You should always give us more informations about PB version and build
You are using, also DB if it's involved.

If You call API check what GetLastError says.

Can You send this code(including declaration/initialization of parameters)

Regards

Timothy Madsen

unread,
Sep 25, 2006, 8:02:22 PM9/25/06
to
Are you sure the application can find the sn25.dll file? If so - how is it
that you are sure?
Tim.

<Maria Folkesson> wrote in message
news:4517f458.627...@sybase.com...

0 new messages