diff options
| author | Marijn Tamis <[email protected]> | 2017-07-03 11:49:08 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2017-07-03 11:49:08 +0200 |
| commit | cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381 (patch) | |
| tree | 5cc014922d20561d87105d279b6f7eb3e628c6d9 /NvCloth/samples/SampleBase/Main.cpp | |
| parent | Fix windows line endings in github. (diff) | |
| download | nvcloth-1.1.1.tar.xz nvcloth-1.1.1.zip | |
NvCloth 1.1.1 Release. (22392725)v1.1.1
Diffstat (limited to 'NvCloth/samples/SampleBase/Main.cpp')
| -rw-r--r-- | NvCloth/samples/SampleBase/Main.cpp | 6 |
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; |