Changeset 517
- Timestamp:
- Sep 11, 2015, 2:29:10 PM (8 years ago)
- Location:
- trunk/Utilities/LogStdOutput
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/LogStdOutput/Generate/Generate.vcxproj
r514 r517 28 28 <ConfigurationType>Application</ConfigurationType> 29 29 <UseDebugLibraries>true</UseDebugLibraries> 30 <PlatformToolset>v120 </PlatformToolset>30 <PlatformToolset>v120_xp</PlatformToolset> 31 31 <CharacterSet>Unicode</CharacterSet> 32 32 </PropertyGroup> … … 34 34 <ConfigurationType>Application</ConfigurationType> 35 35 <UseDebugLibraries>true</UseDebugLibraries> 36 <PlatformToolset>v120 </PlatformToolset>36 <PlatformToolset>v120_xp</PlatformToolset> 37 37 <CharacterSet>Unicode</CharacterSet> 38 38 </PropertyGroup> … … 40 40 <ConfigurationType>Application</ConfigurationType> 41 41 <UseDebugLibraries>false</UseDebugLibraries> 42 <PlatformToolset>v120 </PlatformToolset>42 <PlatformToolset>v120_xp</PlatformToolset> 43 43 <WholeProgramOptimization>true</WholeProgramOptimization> 44 44 <CharacterSet>Unicode</CharacterSet> … … 47 47 <ConfigurationType>Application</ConfigurationType> 48 48 <UseDebugLibraries>false</UseDebugLibraries> 49 <PlatformToolset>v120 </PlatformToolset>49 <PlatformToolset>v120_xp</PlatformToolset> 50 50 <WholeProgramOptimization>true</WholeProgramOptimization> 51 51 <CharacterSet>Unicode</CharacterSet> -
trunk/Utilities/LogStdOutput/LogStdOutput.cpp
r514 r517 52 52 if(!nDataSize) 53 53 break; 54 __E(WriteFile(hOutput, pnData, nDataSize, NULL, NULL)); 54 // NOTE: nWriteDataSize is mandatory 55 // https://social.msdn.microsoft.com/Forums/vstudio/en-US/e519816e-57c6-4b5d-9269-3ad1494eedbf/writefile-on-a-console-handle-always-fails-why?forum=vcgeneral 56 DWORD nWriteDataSize = 0; 57 __E(WriteFile(hOutput, pnData, nDataSize, &nWriteDataSize, NULL)); 55 58 __C(File.Write(pnData, nDataSize)); 56 59 }
Note: See TracChangeset
for help on using the changeset viewer.