Using CPtrList to store data into memory
In this example, i will store 10 records into the memory using CPtrList. Let’s start the example by creating a Win32 console application from my VS2005 IDE. Make sure that we add common header files to...
View ArticleCopy CPtrList
In this example, i will demostrate how to copy CPtrList, from source to destination, with just a simple calling function. If you are new to CPtrList, MSDN is a great source for you to start your...
View ArticleWriting log file using CFile class
Log file can be used to trace your application’s activities effectively. For example, you can create a lo file to trace the active process during the execution of your application, preparing...
View ArticleC++ Encryption and Decryption using Microsoft CryptoAPI
Do you have any sensitive data (e.g username, password, etc) which you think you want to encrypt it so that nobody can read it easily? In this article, i will show you how the task can be acheived...
View ArticleHow to execute external program securely – CreateProcess() vs ShellExecute()
It’s common that user will call CreateProcess() or ShellExecute() in order to execute external program from visual C++ project. But what make both different in term of security? ShellExecute() is...
View ArticleLocking file on Windows Using C++
This example will demonstrate how you can lock a file for writing on Windows. This is useful especially if your application involves of multiple process and each process will access to the same file...
View ArticleLoad DLL List on Windows
Today i need to dertermine if a specified DLL is being loaded on Windows. While looking for a handy tool to handle this task, i came across an executable program, which is called TaskList.exe, provided...
View ArticleStoring encrypted data into text file
This example will utilize the cryptography API on my previous post. If you are new to Microsoft cryptography API, you may refer to the following post, C++ Encryption and Decryption using Microsoft...
View ArticleVC++ File Download Example
You might look for a file download solution so that you can create a software downloader or updater for you application. In this tutorial, i’ll show you how this can be done by using of C++. This...
View Article