Hi Iain-
A couple of thoughts:
1.) You guys are right, we've got bugs in these headers. We're going to try to get them updated and fixed but because of our schedule it won't help you out much.
2.) There are a few bugs in the code you provided. Here are the changes:
OBEXSessionRef Session; ... IOBluetoothCFStringToDeviceAddress( CFSTR("00:00:00:00:00:00"), &Phone ); ....
ret = IOBluetoothOBEXSessionCreateWithIOBluetoothDeviceRefAndChannelNumber( PhoneAddr, 11, &Session );
These still won't compile due to our header bugs, but its something
3.) I think the easiest way for you to move forward right now is to create a "Foundation Tool" project in XCode. That will provide you with a main with the necessary ObjC runtime stuff and you can just drop in your (updated) code into it and it'll run. Don't fear the reaper, ObjC is painless!
Let us know if you run into any more issues
- mat
On Jun 6, 2007, at 6:53 AM, Iain Wallace wrote: Hello,
This kinda follows on from:
I'm wanting to use OBEX in C or C++, but it would appear I can't, from the above and from trying my own test program. The below won't compile due to many errors like "error: parse error before '*' token" (the code may have other issues, I'm new to this, but the inability to include the correct header is the main stumbling block at the moment).
Cheers,
Iain
|