摘要:
BOOL PathFileExists(LPCTSTR pszPath); Determines if a file exists.---经检测,该函数可以检测文件或目录是否存在!RemarksThis function tests the validity of the file and path. It works only on the local file system or on a remote drive that has been mounted to a drive letter. It will return FALSE for remote file paths that 阅读全文
posted @ 2013-05-23 17:46
MMLoveMeMM
阅读(5838)
评论(0)
推荐(0)
摘要:
BOOL PathFileExists(LPCTSTR pszPath); Determines if a file exists.---经检测,该函数可以检测文件或目录是否存在!RemarksThis function tests the validity of the file and path. It works only on the local file system or on a remote drive that has been mounted to a drive letter. It will return FALSE for remote file paths that 阅读全文
posted @ 2013-05-23 16:31
MMLoveMeMM
阅读(412)
评论(0)
推荐(0)
摘要:
一、warning LNK4089vc编译时Debug版本下没问题,release版本下出现如下警告: LINK : warning LNK4089: all references to “ODBC32.dll” discarded by /OPT:REF LINK : warning LNK4089: all references to “ADVAPI32.dll” discarded by /OPT:REF LINK : warning LNK4089: all references to “SHELL32.dll” discarded by /OPT:REF LINK : warning 阅读全文
posted @ 2013-05-23 15:27
MMLoveMeMM
阅读(1388)
评论(0)
推荐(0)
摘要:
创建或打开工程Icon(以下都以工程名为Icon为例)。 单击Workspace窗口的ResourceView标签,选中资源ID为IDR_MAINFRAME图标资源,然后按Delete键把它删除掉。注意:一定要把它删除才行。 从Developer Studio的Insert菜单中选择Resource,然后选择Icon,新建(New)一个新的图标或导入(Import)一个已有的图标。 把新图标的资源ID改为AFX_IDI_STD_MDIFRAME(如果是MDI应用程序)或改为AFX_IDI_STD_FRAME(如果是SDI应用 程序)。AFX_IDI_STD_MDIFRAME和AFX_IDI_S 阅读全文
posted @ 2013-05-23 00:46
MMLoveMeMM
阅读(560)
评论(0)
推荐(0)
摘要:
VC++[MFC]// 第一个参数是将要替换图标的exe文件路径,第二个参数是替换的ico文件路径void ReplaceExeIco(LPCTSTR lpszApp, LPCTSTR lpszIco){try{ CFile file; file.Open(lpszIco, CFile::modeRead); LONG lOffset = 0; DWORD dwSize = 0; DWORD dwBytes = 0; CONST BYTE bGroupIcoSize = 0x18; BYTE* lpGroupIco = new BYTE[bGroupIcoSize]; memset(lpGro 阅读全文
posted @ 2013-05-23 00:27
MMLoveMeMM
阅读(629)
评论(0)
推荐(0)

浙公网安备 33010602011771号