摘要: "SELECT * FROM Records WHERE Name LIKE '%"+m_strName+"%'" 阅读全文
posted @ 2009-01-19 23:43 justinpan 阅读(585) 评论(0) 推荐(0) 编辑
摘要: //最小化到系统托盘NotifyIcon.cbSize = sizeof(NOTIFYICONDATA);NotifyIcon.hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);NotifyIcon.hWnd = m_hWnd;lstrcpy(NotifyIcon.szTip,"四国军棋客户端");NotifyIcon.uCallbackMessage... 阅读全文
posted @ 2009-01-07 22:18 justinpan 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //最小化到系统托盘NotifyIcon.cbSize = sizeof(NOTIFYICONDATA);NotifyIcon.hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);NotifyIcon.hWnd = m_hWnd;lstrcpy(NotifyIcon.szTip,"四国军棋客户端");NotifyIcon.uCallbackMessage... 阅读全文
posted @ 2009-01-07 22:17 justinpan 阅读(155) 评论(0) 推荐(0) 编辑
摘要: //最小化到系统托盘NotifyIcon.cbSize = sizeof(NOTIFYICONDATA);NotifyIcon.hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);NotifyIcon.hWnd = m_hWnd;lstrcpy(NotifyIcon.szTip,"四国军棋客户端");NotifyIcon.uCallbackMessage... 阅读全文
posted @ 2009-01-07 22:16 justinpan 阅读(176) 评论(0) 推荐(0) 编辑
摘要: HRESULT AutoWrap(int autoType, VARIANT *pvResult, IDispatch *pDisp, LPOLESTR ptName, int cArgs...){va_list marker;va_start(marker, cArgs);if(!pDisp) {MessageBox(NULL, "NULL IDispatch passed to AutoWra... 阅读全文
posted @ 2009-01-06 11:23 justinpan 阅读(3758) 评论(0) 推荐(0) 编辑
摘要: int GetFileIndex(){WIN32_FIND_DATA FindFileData;HANDLE hFind;string fullpath;char pathBuf[MAX_PATH];DWORD dw = GetCurrentDirectory(MAX_PATH,pathBuf);if (dw == 0)return -1;strcat(pathBuf,"http://www.cn... 阅读全文
posted @ 2009-01-06 11:20 justinpan 阅读(405) 评论(0) 推荐(0) 编辑
摘要: int FindFileInDir(char* rootDir, char* strRet){char fname[512];ZeroMemory(fname,512);WIN32_FIND_DATA fd;ZeroMemory(&fd, sizeof(WIN32_FIND_DATA));char filePathName[256];char tmpPath[256];ZeroMemory... 阅读全文
posted @ 2009-01-06 11:17 justinpan 阅读(635) 评论(0) 推荐(0) 编辑