By default, the compiler only accepts standard C. To compile a Windows program, you need to enable Microsoft extensions in the compiler. In the IDE, go to Project Options and make sure Enable Microsoft Extensions is checked on the Compiler tab. From the command line, make sure you use the /Ze compiler option.