diff --git a/README.md b/README.md index b84d8a8f..bf407179 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ size_t dictSize = ZDICT_trainFromBuffer(dictBuffer, dictBufferCapacity, #include "zstd.h" (...) ZSTD_CCtx* context = ZSTD_createCCtx(); -size_t compressedSize = ZSTD_compress_usingDict(context, dst, dstCapacity, src, srcSize, dict, dictSize, compressionLevel); +size_t compressedSize = ZSTD_compress_usingDict(context, dst, dstCapacity, src, srcSize, dictBuffer, dictSize, compressionLevel); ``` 3) Decompress with dictionary @@ -115,7 +115,7 @@ size_t compressedSize = ZSTD_compress_usingDict(context, dst, dstCapacity, src, #include "zstd.h" (...) ZSTD_DCtx* context = ZSTD_createDCtx(); -size_t regeneratedSize = ZSTD_decompress_usingDict(context, dst, dstCapacity, cSrc, cSrcSize, dict, dictSize); +size_t regeneratedSize = ZSTD_decompress_usingDict(context, dst, dstCapacity, cSrc, cSrcSize, dictBuffer, dictSize); ``` diff --git a/visual/2013/zstd/zstd.vcxproj b/visual/2013/zstd/zstd.vcxproj index 45319769..7c1c8852 100644 --- a/visual/2013/zstd/zstd.vcxproj +++ b/visual/2013/zstd/zstd.vcxproj @@ -87,7 +87,7 @@ Application false true - v120 + v120_xp Unicode @@ -126,12 +126,14 @@ false $(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath); - true + false + $(SolutionDir)$(Configuration)\ false $(SolutionDir)..\..\programs\legacy;$(SolutionDir)..\..\lib\legacy;$(SolutionDir)..\..\lib;$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath); false + $(SolutionDir)$(Configuration)\ @@ -170,19 +172,19 @@ Level4 - MaxSpeed + Full true true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true + false true - /analyze:stacksize19000 %(AdditionalOptions) Console true true true + setargv.obj; kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) @@ -203,6 +205,7 @@ true true true + setargv.obj;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)