- 博客(7)
- 收藏
- 关注
原创 检查目录是否存在,不存在则创建之
/* shlwapi.h shlwapi.lib*/void CAdsMngWnd::_checkAndcreateDirectory(const std::string DirPath){ std::string cs_tmp_dir; int nfind = DirPath.find("//", 0); while(nfind { if(nfind == -1)nfind =
2004-09-29 11:28:00 1259
原创 动态改变应用程序名称
改变应用程序名称之后,AfxMessageBox的Title会跟着变AfxGetApp()->m_pszAppName;参考MSDN,修改m_pszAppName的内容需要先释放内存,然后再分配给他新的内存。 free((void*)m_pszAppName); m_pszAppName = _tcsdup(_T("新的名称"));
2004-09-23 19:07:00 895
原创 一个得到浏览器(IE)版本的函数
HRESULT CCGAEditorApp::GetBrowserVersion(LPDWORD pdwMajor, LPDWORD pdwMinor){ HINSTANCE hBrowser; if(IsBadWritePtr(pdwMajor, sizeof(DWORD)) || IsBadWritePtr(pdwMinor, sizeof(DWORD))) return E_INV
2004-09-20 19:46:00 970
原创 wincvs笔记(转载)
/*------------------------------------------------------------------------ Module: windows cvs 应用笔记.txt Author: [email protected]; http://amine.nease.net; QQ:188710731 Project: State:
2004-09-20 19:41:00 1367
原创 字符串转换
#include #include template bool from_string(T &t, const std::string &s, std::ios_base & (*f)(std::ios_base&)) { std::istringstream iss(s); return !(iss>>f>>t).fail(); };templatestd::
2004-09-20 19:29:00 973
原创 转载:CVS的使用入门
Bricks with GNU&LINUX====================CVS的使用入门 CVS是一个版本控制系统.在UNIX中,用它来对在源文件之上的改变进行记录,可以记录版本变换,谁在何时修改了什么.并且能够从它管理的源文件堆里提取出某次修改时的版本来.它不但能够在单机上使用,而且CVS能够许多人一起用协同工作,对同一个工程进行操作.CVS的机制是这样的:CVS保留一份
2004-09-20 19:24:00 1398 1
转载 收藏的“windows cvs 应用笔记.txt”
/*------------------------------------------------------------------------ Module: windows cvs 应用笔记.txt Author: [email protected]; http://amine.nease.net; QQ:188710731 Project: State:
2004-09-20 19:21:00 1131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人