The data members and functions of a class is not accessible if their are being defined as private or protected. If you try to access its function right after you initialized the class object, the compiler will complaint about the error and that it cannot access the private or protected function. In some circumstances, you......
[ Click to Continue ]Category "C++"
This example will demonstrate how you can export functions from DLL so that it can be accessed by other application. Let’s start to create a new win32 DLL project. Let’s name the project as “TestDLL”....
[ Click to Continue ]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 simultaneously. The LockFile function locks the file for exclusive access by the calling process only. Once it finish its writing process......
[ Click to Continue ]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?...
[ Click to Continue ]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 easily by using Microsoft cryptography API. The following diagram shows the steps involved in this cryptography demo......
[ Click to Continue ]The following steps will guide you through how you can connect to SQLite databases using C++. 1. Download and extract the following files into a single folder C:\SQLite. SQLite Source Code: sqlite-amalgamation-3071100.zip SQLite DLL for Windows: sqlite-dll-win32-x86-3071100.zip SQLite Shell for Windows: sqlite-shell-win32-x86-3071100.zip 2. Let’s create a SQLite database named “test.db” with a single table named......
[ Click to Continue ]
C++ Friend Function