diff --git a/samples/example_app/uc2.cpp b/samples/example_app/uc2.cpp
index 486bd1a6c2..b2e2119714 100644
--- a/samples/example_app/uc2.cpp
+++ b/samples/example_app/uc2.cpp
@@ -346,17 +346,3 @@ int main(int argc, char **argv) {
#endif
boinc_finish(0);
}
-
-#ifdef _WIN32
-int WINAPI WinMain(
- HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode
-) {
- LPSTR command_line;
- char* argv[100];
- int argc;
-
- command_line = GetCommandLine();
- argc = parse_command_line(command_line, argv);
- return main(argc, argv);
-}
-#endif
diff --git a/win_build/uc2.vcxproj b/win_build/uc2.vcxproj
index 50c51c0d5b..ad3ea7ce80 100644
--- a/win_build/uc2.vcxproj
+++ b/win_build/uc2.vcxproj
@@ -134,7 +134,7 @@
%(DelayLoadDLLs)
true
.\Build\$(Platform)\$(Configuration)\$(ProjectName).pdb
- Windows
+ Console
MachineX86
$(OutDir)
@@ -184,7 +184,7 @@
%(DelayLoadDLLs)
true
.\Build\$(Platform)\$(Configuration)\$(ProjectName).pdb
- Windows
+ Console
MachineX64
$(OutDir)
@@ -232,7 +232,7 @@
%(DelayLoadDLLs)
true
.\Build\$(Platform)\$(Configuration)\$(ProjectName).pdb
- Windows
+ Console
MachineX86
$(OutDir)
@@ -278,7 +278,7 @@
%(DelayLoadDLLs)
true
.\Build\$(Platform)\$(Configuration)\$(ProjectName).pdb
- Windows
+ Console
MachineX64
$(OutDir)