摘要:
StdAfx.h中 #include <afxcontrolbars.h> 阅读全文
摘要:
BOOL IsFolderEmpty(string path) { string str = path + "\\*.*"; CFileFind ff; BOOL bFound; bFound = ff.FindFile(str.c_str()); while (bFound) { bFound = 阅读全文
摘要:
#include <windows.h> typedef BOOL(WINAPI* LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); BOOL RegWriteString(HKEY hKey, string keyName, string keyValue, bool v 阅读全文
摘要:
/// <summary> /// 删除快捷方式 /// </summary> /// <param name="strName"></param> /// <returns></returns> BOOL DeleteDesktopShotCut(CString strName) { char P 阅读全文
摘要:
#include <windows.h> typedef BOOL(WINAPI* LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAdd 阅读全文
摘要:
只需要添加最基础的两个注册表的键即可 路径: 32位:"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test" 64位:"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Unins 阅读全文
摘要:
CWinThread *thread = AfxBeginThread(DownloadAsync, this, THREAD_PRIORITY_NORMAL, 0, NULL); //可在线程内部直接调用此函数退出当前线程 AfxEndThread(resultCode); //等待线程执行结束 阅读全文
摘要:
GCHandle objHandle = GCHandle.Alloc(Globals.Instance.BlackBoard, GCHandleType.WeakTrackResurrection); int address = GCHandle.ToIntPtr(objHandle).ToInt 阅读全文
摘要:
#include <iostream> #include <fstream> #include <sstream>std::stringstream ss; std::ifstream fileStream{ filePath, std::ios::binary }; std::stringstre 阅读全文
摘要:
<!--移除默认选中的阴影(通过绑定ItemContainerStyle来使用)--> <Style x:Key="ListItemNullFocusContainerStyle" TargetType="ListBoxItem"> <Setter Property="SnapsToDevicePi 阅读全文