Complete Newbie Problems
Complete Newbie Problems
- Subject: Complete Newbie Problems
- From: "Alex Tarter" <email@hidden>
- Date: Thu, 30 Sep 2004 17:24:36 +0000
I am a relativly new programmer who hasn't programmed any mac specific stuff
(alot more platform independant c++, java etc programs).
I am trying to delve into Bluetooth developing and since I own a mac I might
as well use its pre-installed bluetooth stack.
I am just trying to start out by creating an SDP window to see whats out
there, but am having problems. When I try to compile this simple app (in
XCode) I get a syntax error in the IOBluetoothUserLib.h at the
IOBluetoothSDPDataElementGetNumberValue method. I have no idea whats wrong,
any ideas??
#include <IOBluetoothUI/IOBluetoothUIUserLib.h>
#include <IOBluetooth/IOBluetoothUserLib.h>
void Blue () {
IOReturn result;
IOBluetoothSDPServiceRecordRef serviceRecord;
IOBluetoothServiceBrowserControllerRef serviceBrowser =
IOBluetoothServiceBrowserControllerCreate
(kIOBluetoothServiceBrowserControllerOptionsNone);
result = IOBluetoothServiceBrowserControllerDiscover (serviceBrowser,
&serviceRecord);
}
int main (int argc, char * const argv[]) {
Blue ();
return 0;
}
thanks in advance
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden