返回> 网站首页
WodowsMobile系统手持机GPRS上网程序
yoours2016-03-02 17:03:24
简介一边听听音乐,一边写写文章。
CStringArray StrAry; m_ConnectManager.EnumNetIdentifier(StrAry); for (int i = 0; i < StrAry.GetSize(); i++) { if (m_ConnectManager.EstablishConnection(i) != NULL) { AfxMessageBox(_T("Connection net successfully\n")); break; } else { DWORD dwLastError = GetLastError(); TRACE(_T("Connection net failed0x%08X\n"), dwLastError); } } // 连接状态 DWORD dwStatus = 0; BOOL bRet = m_ConnectManager.WaitForConnected (10, &dwStatus); if (bRet) { AfxMessageBox(_T("Connection is OK\n")); } else { CString csMsg; csMsg.Format(_T("Connection failed. Status is : 0x%.2x\n"), dwStatus); //AfxMessageBox(csMsg); } if (m_ConnectManager.GetConnMgrAvailable()) { TRACE(_T("Connection manager is available\n")); } else { TRACE(_T("Connection manager is available\n")); } |
http://download.csdn.net/detail/yeah2000/9450890
文章评论
2061人参与,0条评论