os-70-350

os-70-350 Commit Details


Date:2015-01-25 18:16:07 (10 years 7 months ago)
Author:Natalie Adams
Branch:master
Commit:11888a7b7bd6d59738634fbfb2fefe1e4b263e41
Parents: 0679dab93bbe306e8cc9f81d732d4e879fc78b71
Message:updating sample cp code for Windows (was missing some important code and made it an actual copy instead of move program) Also updated compile script for Visual Studio 2013

Changes:

File differences

cp/main.cpp
6868
6969
7070
71
72
71
7372
7473
std::string x = args[1];
wstr.resize(x.size() + 1);
size_t convertedChars = 0;
mbstowcs_s(&convertedChars, &wstr[0], x.size() + 1, x.c_str(), _RUNCATE
DeleteFileA(args[1]);
mbstowcs_s(&convertedChars, &wstr[0], x.size() + 1, x.c_str(), _TRUNCATE);
return 0;
}
cp/test.txt
1
this is only a test
vcppbuild.bat
1212
1313
1414
15
16
17
18
19
1520
1621
1722
call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
goto compile
)
if exist "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" (
call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
goto compile
)
:compile
cl.exe /MD /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /I"..\ext\include" %1.cpp %2
del %1.obj

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.17546s using 14 queries.