Reading EPWING dictionaries with Dicregate

12 years ago

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…

How to use VB regex in VC6

12 years ago

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

How to create a C++ function that can take argment of both char* and wchar_t*

12 years ago

Source. Create a traits class that is used as specialized template. Specialize it for char and wchar_t. Generic template is…

How to move file to a trash

12 years ago

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

System global variable in win32

12 years ago

class CSessionGlobalBool { public: explicit CSessionGlobalBool(LPCSTR pName) { m_pName = (LPSTR)LocalAlloc(LMEM_FIXED, lstrlenA(pName)+sizeof(char)); lstrcpy(m_pName, pName); } ~CSessionGlobalBool(){ LocalFree(m_pName); } operator bool()…

Add a debug console to your windows gui application

12 years ago

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

Show a “We are Busy” page when your server is too busy by using PHP

12 years ago

If you are apache fan. You shold have many virtual host in your apache conf. But after your site getting…

phpMyAdmin says “Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.”

12 years ago

You need to create "tmp" directory where php saves session data. In windows its location is typically same folder as…

“lzma : can not allocate memory” in genkernel

13 years ago

I just forgot the swap partition to activate. To see the current swap status. # cat /proc/swaps ... To find…

busyrebooter

13 years ago

I wanted to reboot my ubuntu server when it got very busy state. After trying monit which I think this…