I had the same problem when compiling. Here was my mistake "If you installed using default directories, navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults and edit corewin_express.vsprops, changing the following: Change AdditionalDependencies="kernel32.lib" to...