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 Windows

Earlier version of Windows (Windows 95, Windows 98, Windows ME) are all running as a single user desktop operating system and thus access control is unnecessary. However, start from Windows NT, following with Windows 2000, Windows XP, Windows Vista, Windows 7, Windows Server 2003, and Windows Server 2008, are all use a system of access......

[ Click to Continue ]
on in Windows

Feel bored with the original Windows 7 logon screen wallpaper? Let’s try to change it to your preferred image with just a few simple steps . WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. Always make a backup of the Windows Registry before you modify any settings.......

[ Click to Continue ]
on in C++ SQLite

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

So, you have your BHO ready for debugging and it’s just don’t work as you wish in IE8. This issue happens after MS introduced LCIE – (Loosely-Coupled Internet Explorer) in IE8. More information about LCIE can be found @ www.microsoft.com/windows/internet-explorer/readiness/developers-existing.aspx#lcie This following will guide you through the steps of overcoming the issue: 1. Run regedit......

[ 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 ]