At 03:28 PM 5/28/2004, you wrote:
Thanks Ben,

I got the problem with C++ shared lib.
I will try to convert my C++ app in C and then build library out of it.

Right now, I am testing how I can use shared library with a simple
library with just one customized function in it. I generated a sample
application (KLib) with CW9 shared library wizard.

I included the KLib.h file in my implementation project and even added
the entire KLib.mcp project as a library to it.

Now, I am using SysLibFind(refNo) function to get the ref num of the
library. But it returns some error to me but refNo is not 0 though.

refNumber won't be changed unless it actually finds the library you mention.

The CW shared library wizard actually generates stub functions for your application to use to load the library. Look in your KLib.h file -- there are inline functions called something like __KLib_OpenLibray and __KLib_CloseLibrary that handle this chore for you.


-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to