摘要: 代码:int nStructSize = 76; //Win98 as default LPARAM lModuleParam = 0; TV_INSERTSTRUCT tvItem; CString sPathNameSel; char lpszCurrentDir[1024];//1K ::GetModuleFileName(NULL, lpszCurrentDir, 1024); //Get current directory int n = CString(lpszCurrentDir).ReverseFind('\\'); CString sTemp = CStr.. 阅读全文
posted @ 2014-04-01 21:44 CocoWang 阅读(295) 评论(0) 推荐(0) 编辑
摘要: BOOL CLiftCtrlModbusConfigDlg::CheckValid(const CString &str){ ASSERT(str.GetLength() > 0); if ((str[0] == '-' && str[1] > '0' && str[1] '0' && str[0] = 1) || (str[0] == '0' && str.GetLength() == 1)) { for (int i = 1; i < s 阅读全文
posted @ 2014-04-01 21:38 CocoWang 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 代码:CString GetConfDir()//获得路径 { CString sTemp; CString sCurrentDir = ""; char lpszCurrentDir[MERGE_MAX_SIZE_OF_DIR_SEARCH_BUFF]; ::GetModuleFileName( NULL, lpszCurrentDir, MERGE_MAX_SIZE_OF_DIR_SEARCH_BUFF); //Get current directory sCurrentDir = lpszCurrentDir; if (lpszCurrentDir[strlen(.. 阅读全文
posted @ 2014-04-01 21:36 CocoWang 阅读(173) 评论(0) 推荐(0) 编辑