Skip to content

Commit dff4df7

Browse files
committed
Visual Studio 2005 build fixes
1 parent 84ed7a9 commit dff4df7

File tree

4 files changed

+324
-1
lines changed

4 files changed

+324
-1
lines changed

UpdatePathVariable.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ General Public License for more details.
1919
todo WM_SETTINGCHANGE isn't working right, research
2020
*/
2121

22+
#ifdef _MSC_VER
23+
#pragma warning(disable:4996)
24+
#endif
25+
2226
#define _WIN32_WINNT 0x501
2327

2428
#ifndef WIN32_LEAN_AND_MEAN

path_set.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ change REG type if specified type is different
3232
3333
*/
3434

35+
#ifdef _MSC_VER
36+
#pragma warning(disable:4996)
37+
#pragma comment(lib, "advapi32.lib")
38+
#pragma comment(lib, "user32.lib")
39+
#endif
40+
3541
#ifndef WIN32_LEAN_AND_MEAN
3642
# define WIN32_LEAN_AND_MEAN 1
3743
#endif
@@ -40,7 +46,8 @@ change REG type if specified type is different
4046

4147
#include <windows.h>
4248
#include <stdio.h>
43-
#include <atlbase.h> // required for Stackwalker
49+
#include <cstdlib>
50+
//#include <atlbase.h> // required for Stackwalker
4451

4552
#include "Stackwalker.h"
4653
#include "Optimize.h"

path_set.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 9.00
3+
# Visual C++ Express 2005
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "path_set", "path_set.vcproj", "{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Win32 = Debug|Win32
9+
Release|Win32 = Release|Win32
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}.Debug|Win32.ActiveCfg = Debug|Win32
13+
{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}.Debug|Win32.Build.0 = Debug|Win32
14+
{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}.Release|Win32.ActiveCfg = Release|Win32
15+
{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}.Release|Win32.Build.0 = Release|Win32
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

path_set.vcproj

Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioProject
3+
ProjectType="Visual C++"
4+
Version="8.00"
5+
Name="path_set"
6+
ProjectGUID="{F48BB7F9-C5B4-4CFF-8D1A-5F4C2E433F6B}"
7+
>
8+
<Platforms>
9+
<Platform
10+
Name="Win32"
11+
/>
12+
</Platforms>
13+
<ToolFiles>
14+
</ToolFiles>
15+
<Configurations>
16+
<Configuration
17+
Name="Release|Win32"
18+
OutputDirectory=".\Release"
19+
IntermediateDirectory=".\Release"
20+
ConfigurationType="1"
21+
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
22+
UseOfMFC="0"
23+
ATLMinimizesCRunTimeLibraryUsage="false"
24+
CharacterSet="2"
25+
>
26+
<Tool
27+
Name="VCPreBuildEventTool"
28+
/>
29+
<Tool
30+
Name="VCCustomBuildTool"
31+
/>
32+
<Tool
33+
Name="VCXMLDataGeneratorTool"
34+
/>
35+
<Tool
36+
Name="VCWebServiceProxyGeneratorTool"
37+
/>
38+
<Tool
39+
Name="VCMIDLTool"
40+
TypeLibraryName=".\Release/path_set.tlb"
41+
HeaderFileName=""
42+
/>
43+
<Tool
44+
Name="VCCLCompilerTool"
45+
Optimization="2"
46+
InlineFunctionExpansion="1"
47+
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
48+
StringPooling="true"
49+
RuntimeLibrary="0"
50+
EnableFunctionLevelLinking="true"
51+
PrecompiledHeaderFile=".\Release/path_set.pch"
52+
AssemblerListingLocation=".\Release/"
53+
ObjectFile=".\Release/"
54+
ProgramDataBaseFileName=".\Release/"
55+
WarningLevel="3"
56+
SuppressStartupBanner="true"
57+
/>
58+
<Tool
59+
Name="VCManagedResourceCompilerTool"
60+
/>
61+
<Tool
62+
Name="VCResourceCompilerTool"
63+
PreprocessorDefinitions="NDEBUG"
64+
Culture="1033"
65+
/>
66+
<Tool
67+
Name="VCPreLinkEventTool"
68+
/>
69+
<Tool
70+
Name="VCLinkerTool"
71+
AdditionalDependencies="shared.lib setargv.obj odbc32.lib odbccp32.lib"
72+
OutputFile=".\Release/path_set.exe"
73+
LinkIncremental="1"
74+
SuppressStartupBanner="true"
75+
ProgramDatabaseFile=".\Release/path_set.pdb"
76+
SubSystem="1"
77+
TargetMachine="1"
78+
/>
79+
<Tool
80+
Name="VCALinkTool"
81+
/>
82+
<Tool
83+
Name="VCManifestTool"
84+
/>
85+
<Tool
86+
Name="VCXDCMakeTool"
87+
/>
88+
<Tool
89+
Name="VCBscMakeTool"
90+
SuppressStartupBanner="true"
91+
OutputFile=".\Release/path_set.bsc"
92+
/>
93+
<Tool
94+
Name="VCFxCopTool"
95+
/>
96+
<Tool
97+
Name="VCAppVerifierTool"
98+
/>
99+
<Tool
100+
Name="VCWebDeploymentTool"
101+
/>
102+
<Tool
103+
Name="VCPostBuildEventTool"
104+
/>
105+
</Configuration>
106+
<Configuration
107+
Name="Debug|Win32"
108+
OutputDirectory=".\Debug"
109+
IntermediateDirectory=".\Debug"
110+
ConfigurationType="1"
111+
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
112+
UseOfMFC="0"
113+
ATLMinimizesCRunTimeLibraryUsage="false"
114+
CharacterSet="2"
115+
>
116+
<Tool
117+
Name="VCPreBuildEventTool"
118+
/>
119+
<Tool
120+
Name="VCCustomBuildTool"
121+
/>
122+
<Tool
123+
Name="VCXMLDataGeneratorTool"
124+
/>
125+
<Tool
126+
Name="VCWebServiceProxyGeneratorTool"
127+
/>
128+
<Tool
129+
Name="VCMIDLTool"
130+
TypeLibraryName=".\Debug/path_set.tlb"
131+
HeaderFileName=""
132+
/>
133+
<Tool
134+
Name="VCCLCompilerTool"
135+
Optimization="0"
136+
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
137+
MinimalRebuild="true"
138+
BasicRuntimeChecks="3"
139+
RuntimeLibrary="1"
140+
PrecompiledHeaderFile=".\Debug/path_set.pch"
141+
AssemblerListingLocation=".\Debug/"
142+
ObjectFile=".\Debug/"
143+
ProgramDataBaseFileName=".\Debug/"
144+
BrowseInformation="1"
145+
WarningLevel="3"
146+
SuppressStartupBanner="true"
147+
DebugInformationFormat="4"
148+
/>
149+
<Tool
150+
Name="VCManagedResourceCompilerTool"
151+
/>
152+
<Tool
153+
Name="VCResourceCompilerTool"
154+
PreprocessorDefinitions="_DEBUG"
155+
Culture="1033"
156+
/>
157+
<Tool
158+
Name="VCPreLinkEventTool"
159+
/>
160+
<Tool
161+
Name="VCLinkerTool"
162+
AdditionalDependencies="sharedd.lib setargv.obj odbc32.lib odbccp32.lib"
163+
OutputFile=".\Debug/path_set.exe"
164+
LinkIncremental="2"
165+
SuppressStartupBanner="true"
166+
GenerateDebugInformation="true"
167+
ProgramDatabaseFile=".\Debug/path_set.pdb"
168+
SubSystem="1"
169+
TargetMachine="1"
170+
/>
171+
<Tool
172+
Name="VCALinkTool"
173+
/>
174+
<Tool
175+
Name="VCManifestTool"
176+
/>
177+
<Tool
178+
Name="VCXDCMakeTool"
179+
/>
180+
<Tool
181+
Name="VCBscMakeTool"
182+
SuppressStartupBanner="true"
183+
OutputFile=".\Debug/path_set.bsc"
184+
/>
185+
<Tool
186+
Name="VCFxCopTool"
187+
/>
188+
<Tool
189+
Name="VCAppVerifierTool"
190+
/>
191+
<Tool
192+
Name="VCWebDeploymentTool"
193+
/>
194+
<Tool
195+
Name="VCPostBuildEventTool"
196+
/>
197+
</Configuration>
198+
</Configurations>
199+
<References>
200+
</References>
201+
<Files>
202+
<Filter
203+
Name="Source Files"
204+
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
205+
>
206+
<File
207+
RelativePath="path_set.cpp"
208+
>
209+
<FileConfiguration
210+
Name="Release|Win32"
211+
>
212+
<Tool
213+
Name="VCCLCompilerTool"
214+
PreprocessorDefinitions=""
215+
/>
216+
</FileConfiguration>
217+
<FileConfiguration
218+
Name="Debug|Win32"
219+
>
220+
<Tool
221+
Name="VCCLCompilerTool"
222+
PreprocessorDefinitions=""
223+
/>
224+
</FileConfiguration>
225+
</File>
226+
<File
227+
RelativePath="UpdatePathVariable.cpp"
228+
>
229+
<FileConfiguration
230+
Name="Release|Win32"
231+
>
232+
<Tool
233+
Name="VCCLCompilerTool"
234+
PreprocessorDefinitions=""
235+
/>
236+
</FileConfiguration>
237+
<FileConfiguration
238+
Name="Debug|Win32"
239+
>
240+
<Tool
241+
Name="VCCLCompilerTool"
242+
PreprocessorDefinitions=""
243+
/>
244+
</FileConfiguration>
245+
</File>
246+
</Filter>
247+
<Filter
248+
Name="Header Files"
249+
Filter="h;hpp;hxx;hm;inl"
250+
>
251+
<File
252+
RelativePath="UpdatePathVariable.h"
253+
>
254+
</File>
255+
<File
256+
RelativePath="version.h"
257+
>
258+
</File>
259+
</Filter>
260+
<Filter
261+
Name="Resource Files"
262+
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
263+
>
264+
<File
265+
RelativePath="path_set.ico"
266+
>
267+
</File>
268+
<File
269+
RelativePath="path_set.rc"
270+
>
271+
<FileConfiguration
272+
Name="Release|Win32"
273+
>
274+
<Tool
275+
Name="VCResourceCompilerTool"
276+
PreprocessorDefinitions=""
277+
/>
278+
</FileConfiguration>
279+
<FileConfiguration
280+
Name="Debug|Win32"
281+
>
282+
<Tool
283+
Name="VCResourceCompilerTool"
284+
PreprocessorDefinitions=""
285+
/>
286+
</FileConfiguration>
287+
</File>
288+
</Filter>
289+
</Files>
290+
<Globals>
291+
</Globals>
292+
</VisualStudioProject>

0 commit comments

Comments
 (0)