Oops, I found the error. It's a big mistake. I have created a Win32 Project rather than Win32 Console Application.

Anyway thanks for all your comments. Now I'm cool.