|
Posted by Ashish on August 30, 2006, 12:52 am
Please log in for more thread options
Hi,
I am trying to execute the sample BTsearch application (Comes with
WM5.0 as a sample) on the Moto Q. But I am not able to execute it
successfully.
In the code below, WSALookupServiceBegin returns -1 and WSAGetLastError
returns 10108 (which seems to be WSASERVICE_NOT_FOUND).
I came to know from some forum that this may be due to the difference
in Bluetooth stack. WSALookupServiceBegin may work only if you have
MSFT BT stack. I would like to know Which BT stack Moto Q is using?
MSFT/Broadcomm/WinComm?
iResult = WSALookupServiceBegin(&wsaq,
LUP_CONTAINERS,
&hLookup);
if (iResult != 0)
{
TCHAR tszErr[32];
iResult = WSAGetLastError();
StringCchPrintf(tszErr, 32, _T("Socket Error: %d"), iResult);
MessageBox(hDlg, tszErr, _T("Error"), MB_OK);
}
Best regards,
VYAS ASHISH M
|