Calling external functions on UNIX – PB Docs 150

Calling external functions on UNIX

In PowerBuilder custom class user objects that you plan to
deploy as EAServer components
on a UNIX platform, you can call external functions in shared libraries
compiled on the operating system where the server is running. You cannot
call external functions in libraries that make Windows API calls
or rely on graphical processing.

You use the standard PowerScript syntax to declare functions
that reside in UNIX shared libraries. For example, this statement
declares the function getcwd in the standard
C library on Solaris:

You call the function from a script in your application in
the way you call any other function. In this example, the space function
allocates enough space to hold the directory name returned by getcwd:

note.png Updating the load library path

On UNIX, when your component calls an external function, it
must be able to find the shared library in which that function resides.
To ensure this, you must update the library path environment variable
to include the directory where that shared library is stored.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x