HOME Javascript HTML C++ ShellExecute C# CGI C# CGI Example C# CGI Sample CGI URLDecode PostMessage Linked List QUERY_STRING Removable Disk Detection getenv formatted date Datagram SOCK_DGRAM URLEncode UDP BrowseDialog UDP Receive WWW Server Source Morris Image Processing Pratt URL Encode UDP Send Removable Media Detection Search File SetTimer SHNE_MEDIAREMOVED SHCNE_DISKEVENTS String Search Algorithm SHCNE_MEDIAINESERTED Shell Comand String Matching Algorithm ShellExecuteEx Creating Thumbnail Amazon Amazon CloudFront Ansi C ASCII Binary Search Bubble Sort CAsyncSocket CGI Example CGI Sample Client/Server Computer Name MFC CGI Example Double Linked List Event Call GetAsyncKeyState HTTP Daemon HTTP Server HTTP Server Source HTTPServer Access Key Image Resizing Keyboard Delay

IMAGE RESIZING.ZIP

URL Encode, Decode function for MFC   (created at Mar 23, 2009)   135  

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   (created at Jul 21, 2010)   112  

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 ?   (created at Mar 23, 2009)   145  

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 ?   (created at Jul 30, 2008)   91  

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 ?   (created at Jun 15, 2008)   56  

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 ?   (created at Oct 11, 2007)   55  

EncodeURI() is the answer. and followings are the usage example: