In your project settings, go to Linker->Advanced->Entry Point and change it to mainWCRTStartup.

In your application, make sure your main() function looks like this:

int _tmain(int argc, _TCHAR* argv[])
{
 return 0;
}