Windows

How to check Windows or process is 64bit

typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); bool Is64BitWindows() { #if defined(_WIN64) return true; // 64-bit programs run only on Win64…

8 years ago

Refresh the taskbar of Windows 10

Sometimes windows 10 taskbar failed to draw the application icon. ie4uinit.exe can fix it. Create the following batch file and…

8 years ago

Reading EPWING dictionaries with Dicregate

1,Obtain any EPWING dictionaries. 2,Open Dicregate.exe 3,Select [Dictionary]->[Add Dictionary]->[Electronic Dictionary] 4,Choose the dictionary folder, the folder that includes a file…

13 years ago

How to use VB regex in VC6

1,Open "OLE/COM object viewer" from Tool menu of VC6. 2,Find "Microsoft VBScript Regular Expressions 5.5" under "Type Libraries". 3, Double…

13 years ago

How to move file to a trash

Use SHFileOperation(). #include #include #include #include #include "SHDeleteFile.h" BOOL SHDeleteFile(LPCTSTR lpFile) { size_t len = _tcslen(lpFile); if(!lpFile || lpFile[0]==0 ||…

13 years ago

Add a debug console to your windows gui application

Call AllocConsole() at the beginning of your application. Only one console can be allocated for a process. Next, call WriteConsole…

13 years ago