摘要:
CStdioFile file; BOOL res = FALSE; if (clean) { res = file.Open(strFilePath, CFile::modeCreate|CFile::modeReadWrite); } else { res = file.Open(strFilePath, CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite); } if (res) { if (!clean) { file.SeekToEnd(); } if (_T("")!=tag) { fi... 阅读全文
摘要:
c++ // 没有盘符,为相对路径 strDllPath.Trim(_T("\\")); strDllPath = CEnvironment::ConfigAppDir()+strDllPath;c#String strDir = Environment.CommandLine.Substring(0, Environment.CommandLine.LastIndexOf(@"\XQ-4."));或者Environment.CurrentDirectory // 当操作中途有使用文件打开对话框的情况时,该函数可能会发生变化《Environment.h》 阅读全文