At 08:50 AM 6/3/2004, you wrote:

Hi,

I have created a sample shared lib called "myLib" with CW9 shared lib
wizard.

And I have done the following things to be able to use it,

1. I have included myLib.h file in my main project.
2. I have added myLib.mcp project as a library to my main project.
3. I am specifying the path of myLib.prc in the other executables for my
main project.
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/

Reply via email to