How to call SetTimer function on MFC CDialog class ?
Hi,problem with MFC Dialog based app: In OnInitDialog: .In OnTimer: .But OnTimer never reached.Why? When i call SendMessage( WM_TIMER,0,0); OnTimer calls succesfully.
Hi,problem with MFC Dialog based app: In OnInitDialog: .In OnTimer: .But OnTimer never reached.Why? When i call SendMessage( WM_TIMER,0,0); OnTimer calls succesfully.
Followings are the useful example can run shell command. If you want to launch browser for specific URL,simple run as below:* Note: The above code must be included in the same source.
This is Binary search that returns a negative one if the number is not found.This code does a bubble sort and then proforms the binary search.
Below is the double linked list example that based on console.Specially this application use macro by define function provided by ANSI C.It's just like inline function that C++ provides.
Makefiles are used in C++ projects to automate the build process,especially when the project has multiple source files and dependencies.They define rules specifying how to compile individual source files into object files and then link those object files i...
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.
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...
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...
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...
The below attachment is HTTP Server source code that supports CGI. Detail Description: HTTPSVR is an MFC sample that demonstrates the use of MFC and its Windows Sockets (WinSock) classes in implementing a simple World Wide Web HTTP server. HTTPSVR turns an...
Followings are the procedure to send / receive UDP packet by CAsyncSocket.STEP 1. ConstructionConstruct a CAsyncSocket object and use the object to create the underlying SOCKET handle.Creation of a socket follows the MFC pattern of two-stage construction.F...
In this short snippet, I will show you a Win32 function that checks whether a button is pressed or not. The good thing is that you don't need to handle the WM_KEYDOWN message. The second advantage is that it is really easy to use and that it can be used ev...
Here's the simplest C based CGI example. #include
In this short howto I will explain how to setup your apache webserver to run any compiled application as an CGI script and show a little example program to explain the main concepts. So why does someone might have the idea to execute an application? There ...
Media sharing is one of the hottest markets on the Internet. Customers have a staggering appetite for placing photos and videos on social networking sites,and for sharing their media in custom online photo albums.The growing popularity of media sharing mea...
To deliver content with the simple web server set up using http.server,you can place the content (HTML,CSS,JavaScript files,images,etc.) in the same directory where you run the script.The server will serve files from this directory and its subdirectories.H...
High available and scalable web hosting can be complex and expensive.Dense peak periods and wild swing in traffic patterns result in low utilization of expensive hardware.Amazon Web Services provides the reliable,scalable,secure,and high-performance infras...
The most important part of designing a database architecture for high performance service at large scale is prioritizing data consistency and availability while ensuring scalability and performance.This means choosing the right database model (relational,N...
Amazon's most outstanding video streaming solutions include Amazon CloudFront,a global content delivery network (CDN) for fast and reliable delivery of video content,Amazon Elastic Transcoder,which converts videos into various formats and resolutions for o...
The most common content distribution method in the OTT industry is Content Delivery Networks (CDNs).CDNs are vast networks of servers strategically located around the globe,caching content closer to users to reduce latency and improve streaming quality.Thi...
Amazon Web Services offers several key components designed to guarantee high availability through built-in redundancy,automatic scaling,and multi-Availability Zone replication,foremost among them being AWS API Gateway,which manages API traffic across multi...
Grabs the referring URL - get the HTTP_REFERER and save it to a variable. code snippet: .While not inherently intended for API security,the HTTP_REFERER header can be a valuable tool for implementing an API that restricts access to certain resources based ...
EncodeURI() is the answer. and followings are the usage example: