Category "MFC"

on in C++ Cryptography MFC

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 CryptoAPI, for more information on how to use the cryptography API. The objective of this example is to encrypt a string from edit......

[ Click to Continue ]
on in MFC

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 by Microsoft. Basically, i can use TaskList.exe to determine all the running processes on Windows. Besides, i can even determine......

[ Click to Continue ]
on in C++ MFC

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 ]
on in MFC

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 un-installation item list, record inbound data or outbound data, etc. This article will demostrate how to write a log file by using CFile class.......

[ Click to Continue ]
on in MFC

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 journey. Also, you can refer to my previous post on Using CPtrList to store data into memory as a......

[ Click to Continue ]