Archive for February 2010

Removing Hidden System Shares

lthough, Windows helps you managing system shares via a great deal of tools and applications, it creates gidden shares for all your disk drives after you install a new fresh copy of Windows that are hidden and not accessible via these tools.

Note: Overcoming WinMain’s ANSI lpCmdLine

I got a question about WinMain and its ANSI lpCmdLine. Are you required to use the ANSI argument? No, you are not!

Simulating CWinApp::OnIdle in C

MFC allows you to override CWinApp::OnIdle function to perform idle-time processing.

This function is called whenever there’re no messages are waiting for processing in the message queue.

In this function, you can perform some secondary processing like updating the status bar, toolbar, etc.

Journey to the Center of the Database

This is one of the powerful (and most funniest) illustrations on the abstraction (i.e. normalization) design of databases. It shows a simple diagram of a database where no abstraction was considered in its design.

New release of ILMerge (v2.10.0219)

As we promised to keep you posted with new releases of your favorite applications and development tools.

Today, Mike Barnett released the new version of ILMerge (v2.10.0219)‏ that fixed a bug where the /ver option did not correctly enforce the AssemblyVersion attribute’s specification.

An extensive list of .NET-aware languages

You already know that many languages targets .NET and conforms to the CIL specifications.

The following article lists many of languages that target the .NET and CIL.

“Hello, World!” in all languages!

A very nice programming articles. It demonstrates the famous “Hello, World!” application in more than 450 programming languages.

BeginPaint/EndPaint or GetDC/ReleaseDC?

Which is better, to use BeginPaint/EndPaint, or to use GetDC/ReleaseDC?

Does cleaning Prefetch offers more performance?

It has been always said that when you clean the folder %windir%\Prefetch you give your system and applications more performance.

How To: Refer a Resource

This article teaches you how to refer to resources, to use Resource IDs, and to use Resource Names. It doesn’t talk about resource, how to define them, or how to load them. It assumes previous knowledge of ABCs of handling resources in an IDE like Microsoft Visual Studio or Microsoft Visual C++.

How To: Represent Numbers in Dec, Hex, and Oct

In C and C++, you can have 3 ways of write a number: a) decimal b) hexadecimal 3) octal

Converting Colors to Gray Shades

This article discusses how you can display the page in print preview as grayscale if the printer is black-and-white. It discusses first how you can convert colors to grayscale. After that is discusses how to detect whether you are in print preview or not and whether the current printer is color or black-and-white printer. Let’s go…

Marshaling Unions

If this is your first time you hear about unions or you need to know more about them, please refer to our article “A short speech about Unions” first.

You can marshal a union the same way you marshal structures. However, because of the way that unions laid-out into memory, you will need to explicitly set variable positions inside the type.


Windows comes with two types that represent a Boolean variable (TRUE or FALSE.) Both represent FALSE if 0 and TRUE if non-zero.

Download Microsoft Visual Studio 2010 Beta 2

Now you can with Visual Studio 2010 Beta 2