I seems that you do not have a global variable for the libraryRef and
clientContext.
You should declare
UInt16 gLibraryRef = sysInvalidRefNum;
UInt32 gClientContext = 0;

not with the 'extern' keyword.

Then call  <libname>_OpenLibrary(&gLibraryRef , &gClientContext)

LionScribe



"Keyur Patwa" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi guys,
>
> I have been asking the same question since long but haven't got any good
> response from any of you! I think this should not be a tough question for
> someone who has got shared library worked successfully!
>
> I have created a project with CW 9 shared library wizard and included it
in
> my main application the following way,
>
> 1. Have created the shared library project in the path/folder of my main
> application itself.
> 2. #include <libName.h> in the main app.
> 3. I am installing the .prc file along with my main app on the device by
> specifying it in the "Other Executable" option of "Debugging settings".
> 4. I have also included the .mcp file of the shared library in the
> "Libraries" part of the project explorer for the main app.
>
> Please tell me if I am doing something wrong here!
>
> I think when the <libname>_OpenLibrary(refnum,clientcontextP) function is
> calling <libname>Open(refnum,clientcontextP), it is not able to get the
> Client Context Pointer value. And that's why I am not able to call any
other
> functions defined in the library! It will be a great help if someone can
> help me to solve this problem!
>
> Thanks,
> Keyur
>
>
>
>



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

Reply via email to