摘要: //在xxxApp::InitInstance()函数里面添加以下内容delete m_pszProfileName;delete m_pszRegistryKey;m_pszRegistryKey = NULL; //如果不为空则会把配置存在注册表里面m_pszProfileName = _w... 阅读全文
posted @ 2013-12-17 17:25 星沉地动 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1、批量选择文件 // 批量添加文件列表void AddFile(){ CString szFileName; CString szCount; POSITION pos; int i; int nCount=0; //文件数量 //输入文件 CFileDialog InFile( T... 阅读全文
posted @ 2013-12-17 17:15 星沉地动 阅读(354) 评论(0) 推荐(0) 编辑
摘要: #include "StdAfx.h"#include #include "ProcessMemory.h"//打开进程内存BOOL CProcessMemory::Open(INT nPID){ HANDLE hToken; INT nFlag; nFlag = OpenProcessT... 阅读全文
posted @ 2013-12-17 16:55 星沉地动 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 在MFC程序中使用键盘钩子来获取按键消息,例程:#include "StdAfx.h"#include "KeyboardHook.h"static HHOOK g_hHook = NULL;static CWnd* g_pWnd = NULL;BOOL CKeyboardHook::Init... 阅读全文
posted @ 2013-12-17 16:30 星沉地动 阅读(419) 评论(0) 推荐(0) 编辑