Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: ContourTest/ContourTest.vcxproj
- ===================================================================
- --- ContourTest/ContourTest.vcxproj (revision 623)
- +++ ContourTest/ContourTest.vcxproj (working copy)
- @@ -37,7 +37,7 @@
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>NotSet</CharacterSet>
- <PlatformToolset>v120</PlatformToolset>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- @@ -50,7 +50,7 @@
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>NotSet</CharacterSet>
- <PlatformToolset>v120</PlatformToolset>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug64|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- @@ -63,8 +63,8 @@
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>NotSet</CharacterSet>
- - <PlatformToolset>v120</PlatformToolset>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <PlatformToolset>v120_xp</PlatformToolset>
- + <UseOfMfc>false</UseOfMfc>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- Index: Msc-generator/Msc-generator.vcxproj
- ===================================================================
- --- Msc-generator/Msc-generator.vcxproj (revision 623)
- +++ Msc-generator/Msc-generator.vcxproj (working copy)
- @@ -33,7 +33,7 @@
- <UseOfMfc>Dynamic</UseOfMfc>
- <CharacterSet>NotSet</CharacterSet>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- - <PlatformToolset>v120</PlatformToolset>
- + <PlatformToolset>v120_xp</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='OptDebug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- Index: libmscgen/libmscgen.vcxproj
- ===================================================================
- --- libmscgen/libmscgen.vcxproj (revision 623)
- +++ libmscgen/libmscgen.vcxproj (working copy)
- @@ -30,15 +30,15 @@
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MyRelease|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- <CharacterSet>NotSet</CharacterSet>
- <PlatformToolset>v120</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- <CharacterSet>NotSet</CharacterSet>
- - <PlatformToolset>v120</PlatformToolset>
- + <PlatformToolset>v120_xp</PlatformToolset>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='OptDebug|Win32'" Label="Configuration">
- @@ -49,7 +49,7 @@
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- <CharacterSet>NotSet</CharacterSet>
- <PlatformToolset>v120</PlatformToolset>
- </PropertyGroup>
- Index: libpng/projects/visualc71/libpng.vcxproj
- ===================================================================
- --- libpng/projects/visualc71/libpng.vcxproj (revision 623)
- +++ libpng/projects/visualc71/libpng.vcxproj (working copy)
- @@ -63,7 +63,7 @@
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='LIB Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>NotSet</CharacterSet>
- </PropertyGroup>
- Index: msc-gen/msc-gen.cpp
- ===================================================================
- --- msc-gen/msc-gen.cpp (revision 623)
- +++ msc-gen/msc-gen.cpp (working copy)
- @@ -25,6 +25,8 @@
- #include <fstream>
- #include <sstream>
- #include <assert.h>
- +#include <crtdbg.h>
- +#include <math.h>
- #include "commandline.h"
- #include "cairo.h"
- #include "cairo-win32.h"
- @@ -107,8 +110,8 @@
- return false;
- }
- -#define REG_SUBKEY_SETTINGS "Software\\Zoltan Turanyi\\Msc-generator\\Settings"
- -#define REG_KEY_LOAD_DATA "LoadData"
- +static const char REG_SUBKEY_SETTINGS[] = "Software\\Zoltan Turanyi\\Msc-generator\\Settings";
- +static const char REG_KEY_LOAD_DATA[] = "LoadData";
- int _tmain(int argc, _TCHAR* argv[])
- {
- @@ -129,22 +132,27 @@
- DWORD len=0;
- char *buffer=NULL;
- std::string load_data;
- - LONG res = RegGetValue(HKEY_CURRENT_USER, REG_SUBKEY_SETTINGS,
- - REG_KEY_LOAD_DATA, RRF_RT_REG_SZ, NULL, NULL, &len);
- - if (res==ERROR_MORE_DATA || res==ERROR_SUCCESS) {
- - buffer = (char*)malloc(len+1);
- - res = RegGetValue(HKEY_CURRENT_USER, REG_SUBKEY_SETTINGS,
- - REG_KEY_LOAD_DATA, RRF_RT_REG_SZ, NULL, buffer, &len);
- - if (res==ERROR_SUCCESS && buffer) {
- - buffer[len] = 0;
- - load_data = buffer;
- + HKEY SettingsKey;
- + LONG res = RegCreateKeyEx(HKEY_CURRENT_USER, REG_SUBKEY_SETTINGS, 0, NULL, 0, KEY_READ | KEY_SET_VALUE, NULL, &SettingsKey, NULL);
- + if (res==ERROR_SUCCESS)
- + {
- + res = RegQueryValueEx(SettingsKey, REG_KEY_LOAD_DATA, 0, NULL, NULL, &len);
- + if (res==ERROR_MORE_DATA || res==ERROR_SUCCESS) {
- + buffer = (char*)malloc(len+1);
- + res = RegQueryValueEx(SettingsKey, REG_KEY_LOAD_DATA, 0, NULL, (LPBYTE)buffer, &len);
- + if (res==ERROR_SUCCESS && buffer) {
- + buffer[len] = 0;
- + load_data = buffer;
- + }
- + free(buffer);
- }
- }
- - int ret = do_main(args, designs, "\\f(courier new)\\mn(12)",
- + int ret = do_main(args, designs, "\\f(courier new)\\mn(12)",
- progressbar, hOut, load_data.length() ? &load_data : NULL);
- - RegSetKeyValue(HKEY_CURRENT_USER, REG_SUBKEY_SETTINGS,
- - REG_KEY_LOAD_DATA, REG_SZ, load_data.c_str(), load_data.length()+1);
- + if (res==ERROR_SUCCESS)
- + RegSetValueEx(SettingsKey, REG_KEY_LOAD_DATA, 0, REG_SZ, (LPBYTE)load_data.c_str(), load_data.length()+1);
- + RegCloseKey(SettingsKey);
- return ret;
- }
- Index: msc-gen/msc-gen.vcxproj
- ===================================================================
- --- msc-gen/msc-gen.vcxproj (revision 623)
- +++ msc-gen/msc-gen.vcxproj (working copy)
- @@ -29,7 +29,7 @@
- <UseOfMfc>false</UseOfMfc>
- <CharacterSet>NotSet</CharacterSet>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- - <PlatformToolset>v120</PlatformToolset>
- + <PlatformToolset>v120_xp</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='OptDebug|Win32'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- Index: zlib/projects/visualc71/zlib.vcxproj
- ===================================================================
- --- zlib/projects/visualc71/zlib.vcxproj (revision 623)
- +++ zlib/projects/visualc71/zlib.vcxproj (working copy)
- @@ -59,7 +59,7 @@
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='LIB Release|Win32'" Label="Configuration">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- - <UseOfMfc>Dynamic</UseOfMfc>
- + <UseOfMfc>false</UseOfMfc>
- <PlatformToolset>v120</PlatformToolset>
- <CharacterSet>NotSet</CharacterSet>
- </PropertyGroup>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement