Hi all. i am currently developing an application which uses bluetooth functions in windows sdk. when i include bluetoothapis.h and some bluetooth defination header files in project and try to compile i am getting this error at the last function of bluetoothapis.h; Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\devtools\microsoft sdks\windows\v6.0\include\bluetoothapis.h 1576 DWORD WINAPI BluetoothSetLocalServiceInfo( __in_opt HANDLE hRadioIn , __in const GUID * pClassGuid , ULONG ulInstance , const BLUETOOTH_LOCAL_SERVICE_INFO * ------------ error line.. ); is there any oppinions or solution? Thanks
You need to imculde another H with needed definition IMHO Arkady "ActiveX" wrote in message news:389D2658-0480-4C28-A216-C192ADC19CC9@microsoft.com... > Hi all. i am currently developing an application which uses bluetooth > functions in windows sdk. when i include bluetoothapis.h and some > bluetooth defination header files in project and try to compile i am > getting this error at the last function of bluetoothapis.h; > > Error 1 error C4430: missing type specifier - int assumed. Note: C++ does > not support default-int e:\devtools\microsoft > sdks\windows\v6.0\include\bluetoothapis.h 1576 > > DWORD > WINAPI > BluetoothSetLocalServiceInfo( > __in_opt HANDLE hRadioIn > , __in const GUID * pClassGuid > , ULONG ulInstance > , const BLUETOOTH_LOCAL_SERVICE_INFO * ------------ error line.. > ); > > is there any oppinions or solution? > > Thanks >
Have you solved this? If so then it would help to say so. Does BluetoothSetLocalServiceInfo exist in your copy of bluetoothapis.h? If not then you need a later version of the SDK. BluetoothSetLocalServiceInfo does not exist in my copy of bluetoothapis.h; I have a 2003 version of the SDK, the one that works with VC 6. Look at the documentation of BluetoothSetLocalServiceInfo. If it does exist in your copy of the header, you probably need to use a #define to be able to use BluetoothSetLocalServiceInfo. "ActiveX" wrote in message news:389D2658-0480-4C28-A216-C192ADC19CC9@microsoft.com... > Hi all. i am currently developing an application which uses bluetooth > functions in windows sdk. when i include bluetoothapis.h and some > bluetooth defination header files in project and try to compile i am > getting this error at the last function of bluetoothapis.h; > > Error 1 error C4430: missing type specifier - int assumed. Note: C++ does > not support default-int e:\devtools\microsoft > sdks\windows\v6.0\include\bluetoothapis.h 1576 > > DWORD > WINAPI > BluetoothSetLocalServiceInfo( > __in_opt HANDLE hRadioIn > , __in const GUID * pClassGuid > , ULONG ulInstance > , const BLUETOOTH_LOCAL_SERVICE_INFO * ------------ error line.. > ); > > is there any oppinions or solution? > > Thanks >