Aroa_Fuentes

Hi!!!!

I am trying to develop a bluetooth application using the Visual C++ 2005 Express Edition, and coming up against a lot of problems with the headers and data types....

Could anybody tell me if it is possible to use all the stuff needed to develop a Bluetooth application with the express edition

Thanks in advanced!!!!!!!


Re: Visual C++ Express Edition Bluetooth application developement with express edition

Sheng Jiang (?κΙ)

More details, like error messages, please Do your header files depend on some other files that do not exist in the Express Edition






Re: Visual C++ Express Edition Bluetooth application developement with express edition

Aroa_Fuentes

The first problem I encountered was that the function WSALookupSeviceBegin always return a -1 value, which means that an error has occurred. In my case is always the same, the 10108: WSASERVICE_NOT_FOUND (The service cannot be found in the specified name space).

Trying to find a solution, I have been looking through Internet and found the following:
http://www.developer.com/ws/other/article.php/10949_3640576_1

There it is explained how to work with bluetooth sockets, but when testing the code included in the first page, I get the followinf errors:

1>------ Operacion Generar iniciada: proyecto: Winsock_Bluetooth_Socket_2, configuracion: Debug Win32 ------
1>Compilando...
1>Windows_Bluetooth_Socket_Source_2.cpp
1>.\Windows_Bluetooth_Socket_Source_2.cpp(11) : error C2146: error de sintaxis : falta ';' delante del identificador 'm_sName'
1>.\Windows_Bluetooth_Socket_Source_2.cpp(11) : error C4430: falta el especificador de tipo; se presupone int. Nota: C++ no admite default-int
1>.\Windows_Bluetooth_Socket_Source_2.cpp(11) : error C4430: falta el especificador de tipo; se presupone int. Nota: C++ no admite default-int
1>.\Windows_Bluetooth_Socket_Source_2.cpp(12) : error C2146: error de sintaxis : falta ';' delante del identificador 'm_btAddr'
1>.\Windows_Bluetooth_Socket_Source_2.cpp(12) : error C4430: falta el especificador de tipo; se presupone int. Nota: C++ no admite default-int
1>.\Windows_Bluetooth_Socket_Source_2.cpp(12) : error C4430: falta el especificador de tipo; se presupone int. Nota: C++ no admite default-int
1>.\Windows_Bluetooth_Socket_Source_2.cpp(15) : error C2143: error de sintaxis : falta ';' delante de '<'
1>.\Windows_Bluetooth_Socket_Source_2.cpp(15) : error C4430: falta el especificador de tipo; se presupone int. Nota: C++ no admite default-int
1>.\Windows_Bluetooth_Socket_Source_2.cpp(17) : error C2065: 'CBtInfoArray' : identificador no declarado
1>.\Windows_Bluetooth_Socket_Source_2.cpp(17) : error C2065: 'arrBtInfo' : identificador no declarado
1>.\Windows_Bluetooth_Socket_Source_2.cpp(18) : error C2448: 'DiscoverBtDevList' : el inicializador de estilo de funcion parece ser una definicion de funcion
1>El registro de generacion se guardo en el "file://c:\Documents and Settings\Administrador\Mis documentos\Visual Studio 2005\Projects\Winsock_Bluetooth_Socket_2\Winsock_Bluetooth_Socket_2\Debug\BuildLog.htm"
1>Winsock_Bluetooth_Socket_2 - 11 errores, 0 advertencias
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========

I apologise for being in Spanish; the thing is that some data types are not recognized: CString, BT_ADDR, CArray<BtInfo.....

I have tried to include some headers, such as <CString>, but it hasn't worked. And I have beeing thinking if the reason could be that the problem is that I am using a express edition of the Visual Studio C++.


Thanks again!!!!!!!1




Re: Visual C++ Express Edition Bluetooth application developement with express edition

Sheng Jiang (?κΙ)

MFC is not shipped with the free Express Edition. You can buy a higher edition, or modify the code to remove dependency on MFC.






Re: Visual C++ Express Edition Bluetooth application developement with express edition

Aroa_Fuentes

How should I modify the code I mean, what exactly This is the first time I using Visual Studio C++...

Thanks for your help!!!!!




Re: Visual C++ Express Edition Bluetooth application developement with express edition

Sheng Jiang (?κΙ)

Than reimplement MFC classes used in the article, or buy a copy of Visual C++.