Hi Ben, Thanks for ur reply.
First of all myLib_OpenLibrary() expects a pointer and as I have declared refNum as an UInt16, I am passing &refNum to it. Which gets assigned to UInt16 *refNumP in that function. Later the myLibOpen() function expects the UInt16 value of reference number so we pass the value as *refNumP. And by the way the call to the myLibOpen() function has been generated by the wizard itself so I haven't made any changes to it! Thanks for ur time, Let me know if u think I am making mistake somewhere else! Keyur. -----Original Message----- From: Ben Combee [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 11:04 AM To: Palm Developer Forum Subject: Re: Please help about Shared Library! At 08:50 AM 6/3/2004, you wrote: >4. I am calling >error = myLib_OpenLibrary(&refNum,clientContextP); >which gets refNum = 14 and then calles >error = myLibOpen(*refNumP, clientContextP); Why are you writing *refNumP ? You should just pass refNum -- the first parameter to any shared library function must be a plain library reference number. That line would only work if previously you had said "refNumP = &refNum;". -- 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/
