From dae64684b10df65318c66d1ac45ce814fc47c446 Mon Sep 17 00:00:00 2001 From: Elena Subbotina Date: Sat, 21 May 2022 12:46:39 +0300 Subject: [PATCH] . --- ASCOfficeXlsFile2/source/VbaFormat/Records.cpp | 10 ++++++++++ ASCOfficeXlsFile2/source/win32/VbaFormat.vcxproj | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/ASCOfficeXlsFile2/source/VbaFormat/Records.cpp b/ASCOfficeXlsFile2/source/VbaFormat/Records.cpp index dfdbb04c0e..11f5df4b13 100644 --- a/ASCOfficeXlsFile2/source/VbaFormat/Records.cpp +++ b/ASCOfficeXlsFile2/source/VbaFormat/Records.cpp @@ -38,6 +38,16 @@ namespace VBA { + const std::string int2str(const int val, const int radix) + { + static char num_buf[10] = {}; +#if defined(_WIN32) || defined(_WIN64) + _itoa_s(val, num_buf, 9, radix); +#else + sprintf(num_buf, "%d", val); +#endif + return num_buf; + } const std::wstring int2wstr(const int val, const int radix) { #if defined(_WIN32) || defined(_WIN64) diff --git a/ASCOfficeXlsFile2/source/win32/VbaFormat.vcxproj b/ASCOfficeXlsFile2/source/win32/VbaFormat.vcxproj index 34e7e65964..a321cdcf64 100644 --- a/ASCOfficeXlsFile2/source/win32/VbaFormat.vcxproj +++ b/ASCOfficeXlsFile2/source/win32/VbaFormat.vcxproj @@ -86,6 +86,10 @@ ..\..\..\Common\3dParty\boost\build\win_32\include;$(VC_IncludePath);$(WindowsSDK_IncludePath); ..\..\..\Common\3dParty\boost\build\win_32\lib;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86 + + ..\..\..\Common\3dParty\boost\build\win_64\include;$(VC_IncludePath);$(WindowsSDK_IncludePath); + ..\..\..\Common\3dParty\boost\build\win_64\lib;$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);$(NETFXKitsDir)Lib\um\x64 +