Hi Phil

Unfortunately, the standard POSIX shared library handling routines dlopen(),
dlsym(), and dlclose() are not provided on iSeries to deal with Service
Programs. Instead, you need to deal with complicated APIs, and if you want
to unload service programs, you will need to put them in their own
activation groups so you can "destroy" them without affecting the rest of
your application.

There is a fabulous article, "AS/400 DLLs In-Depth: Fast and Flexible
Dynamic Calls" by Scott N Gerard, including sample source code, on the
iSeries network (www.iseriesnetwork.com) that explains how to treat iSeries
service programs like Windows DLLs (or POSIX shared libraries). From what I
recall, the code may not work exactly as is, but you should be able to work
your way through any issues.

To find the article, simply go to their website, and enter article id 1990
into the box in the top right-hand corner.

Good luck!

Cassie



-----Original Message-----
From: sublime78ska@attbi.com [mailto:sublime78ska@attbi.com]
Sent: Tuesday, October 01, 2002 6:30 AM
To: c400-l@midrange.com
Subject: [C400-L] dlfcn.h - dynamic linking


I am searching for another header file - dlfcn.h (dynamic
linking.)

I've found a lot of documentation on the internet but
none of it references the as400.

Does anyone know if this is supported on the as400?

Thanks,

Phil
_______________________________________________
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/c400-l
or email: C400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].