URL Encode, Decode function for MFC Here's the good example for URL Encoding & Decoding. Above sample code use CString, so if you want to use it on another type of development environment such as gcc or something like that, you need to add some more stuffs because it may not suppo... |
KMP String Matching Algorithm KMP String Matching Algorithm is well-known algorithm for faster string search. KMP is, as you know, Knuth, Morris, and Pratt. It's complexity is O(n). n is the length of target string and O is big-O notation.Here's the implemented algorithm.//////////////... |
How to load HTML resource on MFC ? I tried to load HTML resource that stored in the application for MFC based application programming. The resource name is IDR_KURAPA_COM_HTML_ROOT.Actually this is very convenient to reduce files for application package.You can load HTML resource as followi... |
How to call SetTimer function on MFC CDialog class ? Hi, problem with MFC Dialog based app: In OnInitDialog: Code: SetTimer( WM_USER+100, 500, NULL ); In OnTimer: Code: MessageBox(... CDialog::OnTimer(nIDEvent); But OnTimer never reached. Why? When i call SendMessage( WM_TIMER, 0, 0); OnTimer calls succesful... |
How to search file on certain directory ? In case of finding files on certain directory, you need to use FindFirstFileEx function.Following example shows the example,bool KFindFile(void *findname){ WIN32_FIND_DATA FindFileData; HANDLE hFind; CString strSearch... |
Is there URLEncode function in Javascript ? EncodeURI() is the answer. and followings are the usage example:
|