Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 14 Sep 2007 19:31:51 +0300,    group: microsoft.public.platformsdk.networking        back       


bluetoothapis.h C4430 Error When Compiling Project   
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
date: Fri, 14 Sep 2007 19:31:51 +0300   author:   ActiveX

Re: bluetoothapis.h C4430 Error When Compiling Project   
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
>
date: Sat, 15 Sep 2007 14:10:51 +0300   author:   Arkady Frenkel

Re: bluetoothapis.h C4430 Error When Compiling Project   
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
>
date: Sat, 15 Sep 2007 10:51:10 -0700   author:   Sam Hobbs _change_social_to_socal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us