Thank you Rob. It worked in the way you suggested. :)

----- Original Message ----- From: "Robert Moynihan" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, June 23, 2005 1:37 PM
Subject: Re: undefined identifier 'btLibRef' in BtLibGetGeneralPreference


Hi Jennifer,

No, 'btLibRef' is not predefined, and it will be a reference number that is returned to your app when your app asks for it. You do it something like this...

   error = SysLibFind (libName, &libRef);
   if (error)
       error = SysLibLoad ('libr', libCrId, &libRef);

First you try to "find" if the library is already loaded. You need to pass it the libName, and it will pass back the refNum if it is found. If it is not found, then you need to "load" it yourself, passing the type (which is 'libr') and the library creatorID. Again, it will pass back the refNum.

Bob

Well, I was assuming 'btLibRef' is defined somewhere in the bluetooth library. The base of this assumption was the info on this site: http://hazelware.luggle.com/archive.html?57. Anyway, if it is not define, what should be the value of the btLibRefNum parameter in the following function?

Err BtLibGetGeneralPreference (UInt16 btLibRefNum, BtLibGeneralPrefEnum pref, void *prefValue, UInt16 prefValueSize)

Thanks a lot.
Jenni


----- Original Message ----- From: "Layne Lund" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, June 23, 2005 1:01 PM
Subject: Re: undefined identifier 'btLibRef' in BtLibGetGeneralPreference


I'm new to Palm development, but this sounds like a linker error.  The
fact that you've #included a header file doesn't mean much to the
linker.  What is btLibRef?  Is this a variable you declared in your
own code or is it a variable from the PalmOS API?  I'm not familiar
enogh with the API yet to know all the variables it declares.

Layne

On 6/23/05, Jennifer Fell <[EMAIL PROTECTED]> wrote:

Hi,

I am having this error: "undefined identifier 'btLibRef'". Here is the
original call:
err = BtLibGetGeneralPreference (btLibRef, btLibPref_LocalDeviceAddress,
&address, sizeof (address));
and I included the BtLib.h library.
Any idea why it's happening?

Thanks in advance.

Best Regards,
Jenni

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




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


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

Reply via email to