Oh yes, I forgot to say that I am not using VC++, I am using GCC, from DevCpp.

I will try to install CygWin and see if the problem persist
I don't like to use proprietary applications, but I wanted the program to work on windows.

Any tips on GCC?

Well, enough questions.
Good night to you!

Ian Liu.