Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 831c476

Browse files
committed
when building with VC 2008, turn off unicode as default mode for the win32 API.
For example, MessageBox takes char* parameters. If you want to pass unicode strings, use MessageBoxW explicitely.
1 parent 8a392d7 commit 831c476

15 files changed

Lines changed: 105 additions & 105 deletions

PCbuild9/_bsddb.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
Name="Debug|x64"
8686
ConfigurationType="2"
8787
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
88-
CharacterSet="1"
88+
CharacterSet="0"
8989
>
9090
<Tool
9191
Name="VCPreBuildEventTool"
@@ -148,7 +148,7 @@
148148
Name="Release|Win32"
149149
ConfigurationType="2"
150150
InheritedPropertySheets=".\pyd.vsprops"
151-
CharacterSet="1"
151+
CharacterSet="0"
152152
WholeProgramOptimization="1"
153153
>
154154
<Tool
@@ -211,7 +211,7 @@
211211
Name="Release|x64"
212212
ConfigurationType="2"
213213
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
214-
CharacterSet="1"
214+
CharacterSet="0"
215215
WholeProgramOptimization="1"
216216
>
217217
<Tool
@@ -275,7 +275,7 @@
275275
Name="PGInstrument|Win32"
276276
ConfigurationType="2"
277277
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
278-
CharacterSet="1"
278+
CharacterSet="0"
279279
WholeProgramOptimization="1"
280280
>
281281
<Tool
@@ -338,7 +338,7 @@
338338
Name="PGInstrument|x64"
339339
ConfigurationType="2"
340340
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
341-
CharacterSet="1"
341+
CharacterSet="0"
342342
WholeProgramOptimization="1"
343343
>
344344
<Tool
@@ -403,7 +403,7 @@
403403
Name="PGUpdate|Win32"
404404
ConfigurationType="2"
405405
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
406-
CharacterSet="1"
406+
CharacterSet="0"
407407
WholeProgramOptimization="1"
408408
>
409409
<Tool
@@ -466,7 +466,7 @@
466466
Name="PGUpdate|x64"
467467
ConfigurationType="2"
468468
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
469-
CharacterSet="1"
469+
CharacterSet="0"
470470
WholeProgramOptimization="1"
471471
>
472472
<Tool

PCbuild9/_ctypes.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
Name="Debug|x64"
8484
ConfigurationType="2"
8585
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
86-
CharacterSet="1"
86+
CharacterSet="0"
8787
>
8888
<Tool
8989
Name="VCPreBuildEventTool"
@@ -144,7 +144,7 @@
144144
Name="Release|Win32"
145145
ConfigurationType="2"
146146
InheritedPropertySheets=".\pyd.vsprops"
147-
CharacterSet="1"
147+
CharacterSet="0"
148148
WholeProgramOptimization="1"
149149
>
150150
<Tool
@@ -207,7 +207,7 @@
207207
Name="Release|x64"
208208
ConfigurationType="2"
209209
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
210-
CharacterSet="1"
210+
CharacterSet="0"
211211
WholeProgramOptimization="1"
212212
>
213213
<Tool
@@ -271,7 +271,7 @@
271271
Name="PGInstrument|Win32"
272272
ConfigurationType="2"
273273
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
274-
CharacterSet="1"
274+
CharacterSet="0"
275275
WholeProgramOptimization="1"
276276
>
277277
<Tool
@@ -334,7 +334,7 @@
334334
Name="PGInstrument|x64"
335335
ConfigurationType="2"
336336
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
337-
CharacterSet="1"
337+
CharacterSet="0"
338338
WholeProgramOptimization="1"
339339
>
340340
<Tool
@@ -399,7 +399,7 @@
399399
Name="PGUpdate|Win32"
400400
ConfigurationType="2"
401401
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
402-
CharacterSet="1"
402+
CharacterSet="0"
403403
WholeProgramOptimization="1"
404404
>
405405
<Tool
@@ -462,7 +462,7 @@
462462
Name="PGUpdate|x64"
463463
ConfigurationType="2"
464464
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
465-
CharacterSet="1"
465+
CharacterSet="0"
466466
WholeProgramOptimization="1"
467467
>
468468
<Tool

PCbuild9/_ctypes_test.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
Name="Debug|x64"
8282
ConfigurationType="2"
8383
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
84-
CharacterSet="1"
84+
CharacterSet="0"
8585
>
8686
<Tool
8787
Name="VCPreBuildEventTool"
@@ -140,7 +140,7 @@
140140
Name="Release|Win32"
141141
ConfigurationType="2"
142142
InheritedPropertySheets=".\pyd.vsprops"
143-
CharacterSet="1"
143+
CharacterSet="0"
144144
WholeProgramOptimization="1"
145145
>
146146
<Tool
@@ -199,7 +199,7 @@
199199
Name="Release|x64"
200200
ConfigurationType="2"
201201
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
202-
CharacterSet="1"
202+
CharacterSet="0"
203203
WholeProgramOptimization="1"
204204
>
205205
<Tool
@@ -259,7 +259,7 @@
259259
Name="PGInstrument|Win32"
260260
ConfigurationType="2"
261261
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
262-
CharacterSet="1"
262+
CharacterSet="0"
263263
WholeProgramOptimization="1"
264264
>
265265
<Tool
@@ -318,7 +318,7 @@
318318
Name="PGInstrument|x64"
319319
ConfigurationType="2"
320320
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
321-
CharacterSet="1"
321+
CharacterSet="0"
322322
WholeProgramOptimization="1"
323323
>
324324
<Tool
@@ -379,7 +379,7 @@
379379
Name="PGUpdate|Win32"
380380
ConfigurationType="2"
381381
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
382-
CharacterSet="1"
382+
CharacterSet="0"
383383
WholeProgramOptimization="1"
384384
>
385385
<Tool
@@ -438,7 +438,7 @@
438438
Name="PGUpdate|x64"
439439
ConfigurationType="2"
440440
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
441-
CharacterSet="1"
441+
CharacterSet="0"
442442
WholeProgramOptimization="1"
443443
>
444444
<Tool

PCbuild9/_elementtree.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
Name="Debug|x64"
8686
ConfigurationType="2"
8787
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
88-
CharacterSet="1"
88+
CharacterSet="0"
8989
>
9090
<Tool
9191
Name="VCPreBuildEventTool"
@@ -148,7 +148,7 @@
148148
Name="Release|Win32"
149149
ConfigurationType="2"
150150
InheritedPropertySheets=".\pyd.vsprops"
151-
CharacterSet="1"
151+
CharacterSet="0"
152152
WholeProgramOptimization="1"
153153
>
154154
<Tool
@@ -211,7 +211,7 @@
211211
Name="Release|x64"
212212
ConfigurationType="2"
213213
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
214-
CharacterSet="1"
214+
CharacterSet="0"
215215
WholeProgramOptimization="1"
216216
>
217217
<Tool
@@ -275,7 +275,7 @@
275275
Name="PGInstrument|Win32"
276276
ConfigurationType="2"
277277
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
278-
CharacterSet="1"
278+
CharacterSet="0"
279279
WholeProgramOptimization="1"
280280
>
281281
<Tool
@@ -338,7 +338,7 @@
338338
Name="PGInstrument|x64"
339339
ConfigurationType="2"
340340
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
341-
CharacterSet="1"
341+
CharacterSet="0"
342342
WholeProgramOptimization="1"
343343
>
344344
<Tool
@@ -403,7 +403,7 @@
403403
Name="PGUpdate|Win32"
404404
ConfigurationType="2"
405405
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
406-
CharacterSet="1"
406+
CharacterSet="0"
407407
WholeProgramOptimization="1"
408408
>
409409
<Tool
@@ -466,7 +466,7 @@
466466
Name="PGUpdate|x64"
467467
ConfigurationType="2"
468468
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
469-
CharacterSet="1"
469+
CharacterSet="0"
470470
WholeProgramOptimization="1"
471471
>
472472
<Tool

PCbuild9/_msi.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
Name="Debug|x64"
8484
ConfigurationType="2"
8585
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
86-
CharacterSet="1"
86+
CharacterSet="0"
8787
>
8888
<Tool
8989
Name="VCPreBuildEventTool"
@@ -144,7 +144,7 @@
144144
Name="Release|Win32"
145145
ConfigurationType="2"
146146
InheritedPropertySheets=".\pyd.vsprops"
147-
CharacterSet="1"
147+
CharacterSet="0"
148148
WholeProgramOptimization="1"
149149
>
150150
<Tool
@@ -205,7 +205,7 @@
205205
Name="Release|x64"
206206
ConfigurationType="2"
207207
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
208-
CharacterSet="1"
208+
CharacterSet="0"
209209
WholeProgramOptimization="1"
210210
>
211211
<Tool
@@ -267,7 +267,7 @@
267267
Name="PGInstrument|Win32"
268268
ConfigurationType="2"
269269
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
270-
CharacterSet="1"
270+
CharacterSet="0"
271271
WholeProgramOptimization="1"
272272
>
273273
<Tool
@@ -328,7 +328,7 @@
328328
Name="PGInstrument|x64"
329329
ConfigurationType="2"
330330
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
331-
CharacterSet="1"
331+
CharacterSet="0"
332332
WholeProgramOptimization="1"
333333
>
334334
<Tool
@@ -391,7 +391,7 @@
391391
Name="PGUpdate|Win32"
392392
ConfigurationType="2"
393393
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
394-
CharacterSet="1"
394+
CharacterSet="0"
395395
WholeProgramOptimization="1"
396396
>
397397
<Tool
@@ -452,7 +452,7 @@
452452
Name="PGUpdate|x64"
453453
ConfigurationType="2"
454454
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
455-
CharacterSet="1"
455+
CharacterSet="0"
456456
WholeProgramOptimization="1"
457457
>
458458
<Tool

PCbuild9/_socket.vcproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
Name="Debug|x64"
8484
ConfigurationType="2"
8585
InheritedPropertySheets=".\pyd_d.vsprops;.\x64.vsprops"
86-
CharacterSet="1"
86+
CharacterSet="0"
8787
>
8888
<Tool
8989
Name="VCPreBuildEventTool"
@@ -144,7 +144,7 @@
144144
Name="Release|Win32"
145145
ConfigurationType="2"
146146
InheritedPropertySheets=".\pyd.vsprops"
147-
CharacterSet="1"
147+
CharacterSet="0"
148148
WholeProgramOptimization="1"
149149
>
150150
<Tool
@@ -205,7 +205,7 @@
205205
Name="Release|x64"
206206
ConfigurationType="2"
207207
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops"
208-
CharacterSet="1"
208+
CharacterSet="0"
209209
WholeProgramOptimization="1"
210210
>
211211
<Tool
@@ -267,7 +267,7 @@
267267
Name="PGInstrument|Win32"
268268
ConfigurationType="2"
269269
InheritedPropertySheets=".\pyd.vsprops;.\pginstrument.vsprops"
270-
CharacterSet="1"
270+
CharacterSet="0"
271271
WholeProgramOptimization="1"
272272
>
273273
<Tool
@@ -328,7 +328,7 @@
328328
Name="PGInstrument|x64"
329329
ConfigurationType="2"
330330
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pginstrument.vsprops"
331-
CharacterSet="1"
331+
CharacterSet="0"
332332
WholeProgramOptimization="1"
333333
>
334334
<Tool
@@ -391,7 +391,7 @@
391391
Name="PGUpdate|Win32"
392392
ConfigurationType="2"
393393
InheritedPropertySheets=".\pyd.vsprops;.\pgupdate.vsprops"
394-
CharacterSet="1"
394+
CharacterSet="0"
395395
WholeProgramOptimization="1"
396396
>
397397
<Tool
@@ -452,7 +452,7 @@
452452
Name="PGUpdate|x64"
453453
ConfigurationType="2"
454454
InheritedPropertySheets=".\pyd.vsprops;.\x64.vsprops;.\pgupdate.vsprops"
455-
CharacterSet="1"
455+
CharacterSet="0"
456456
WholeProgramOptimization="1"
457457
>
458458
<Tool

0 commit comments

Comments
 (0)