谢欣伦 - OpenDev原创教程 - 蓝牙设备查找类CxBthRemoteDeviceFind
生活随笔
收集整理的這篇文章主要介紹了
谢欣伦 - OpenDev原创教程 - 蓝牙设备查找类CxBthRemoteDeviceFind
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這是一個精練的藍牙設備查找類,類名、函數名和變量名均采用匈牙利命名法。小寫的x代表我的姓氏首字母(謝欣倫),個人習慣而已,如有雷同,純屬巧合。
CxBthRemoteDeviceFind的使用如下:
void CUsbScannerDlg::OnBtnRemoteBth() {// TODO: Add your control notification handler code here m_list1.ResetContent();BTH_DEV_INFO bdi = {0};CString str;CxBthRemoteDeviceFind finder;BOOL bRet = finder.FindDevice();while (bRet){finder.GetDeviceInfo(&bdi);m_list1.AddString(bdi.szName);m_list1.AddString(bdi.szMacAddr);str.Format(_T("Class of Device : 0x%08x"), bdi.ulClassofDevice);m_list1.AddString(str);m_list1.AddString("");m_list1.AddString("-->Next<--");bRet = finder.FindNextDevice();} finder.Close(); }精練的代碼不需要過多解釋,你們懂的。To be continued...
下載
libComm - v1.2 For WinXP/Win7
轉載于:https://www.cnblogs.com/EdmundDwyane/p/3264370.html
總結
以上是生活随笔為你收集整理的谢欣伦 - OpenDev原创教程 - 蓝牙设备查找类CxBthRemoteDeviceFind的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: POJ 2029 Get Many Pe
- 下一篇: [置顶] ProDinner体验