Hi Ben,

As you asked, now I am using the wizard generated, 
KLib_OpenLibrary(UInt16 *refNumP, UInt32 * clientContextP),
Function to open the library.

Still I am getting error: "The Exchange Manager couldn't find library or
application to respond to URL" when I run the application.

I think I am not properly including the library in my project.

Please help,
Thanks,
Keyur.

-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 28, 2004 5:15 PM
To: Palm Developer Forum
Subject: Re: Including Shared Library...

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/



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

Reply via email to