aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/samples/SampleBase/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/samples/SampleBase/Main.cpp')
-rw-r--r--NvCloth/samples/SampleBase/Main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/NvCloth/samples/SampleBase/Main.cpp b/NvCloth/samples/SampleBase/Main.cpp
index 433ed88..f4107c3 100644
--- a/NvCloth/samples/SampleBase/Main.cpp
+++ b/NvCloth/samples/SampleBase/Main.cpp
@@ -12,7 +12,9 @@
#include <sstream>
#include <Windows.h>
-
+#include <iostream>
+#include <io.h>
+#include <fcntl.h>
using namespace std;
@@ -22,6 +24,8 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
AllocConsole();
+ FILE* fp;
+ freopen_s(&fp, "CONOUT$", "w", stdout);
#endif
SampleConfig config;