forked from pauldotknopf/WindowsSDK7-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StartSamples.htm
1213 lines (1075 loc) · 58.7 KB
/
StartSamples.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 12 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
h1
{mso-style-link:"Heading 1 Char";
margin-top:24.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Cambria","serif";
color:#365F91;}
h2
{mso-style-link:"Heading 2 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Cambria","serif";
color:#4F81BD;}
h3
{mso-style-link:"Heading 3 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Cambria","serif";
color:#4F81BD;}
h4
{mso-style-link:"Heading 4 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Cambria","serif";
color:#4F81BD;
font-style:italic;}
h5
{mso-style-link:"Heading 5 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Cambria","serif";
color:#243F60;
font-weight:normal;}
h6
{mso-style-link:"Heading 6 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Cambria","serif";
color:#243F60;
font-weight:normal;
font-style:italic;}
p.MsoHeading7, li.MsoHeading7, div.MsoHeading7
{mso-style-link:"Heading 7 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Cambria","serif";
color:#404040;
font-style:italic;}
p.MsoHeading8, li.MsoHeading8, div.MsoHeading8
{mso-style-link:"Heading 8 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:10.0pt;
font-family:"Cambria","serif";
color:#404040;}
p.MsoHeading9, li.MsoHeading9, div.MsoHeading9
{mso-style-link:"Heading 9 Char";
margin-top:10.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:10.0pt;
font-family:"Cambria","serif";
color:#404040;
font-style:italic;}
p.MsoToc1, li.MsoToc1, div.MsoToc1
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:5.0pt;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoToc2, li.MsoToc2, div.MsoToc2
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:5.0pt;
margin-left:11.0pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoToc3, li.MsoToc3, div.MsoToc3
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:5.0pt;
margin-left:22.0pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoCaption, li.MsoCaption, div.MsoCaption
{margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
font-size:9.0pt;
font-family:"Calibri","sans-serif";
color:#4F81BD;
font-weight:bold;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
{mso-style-link:"Title Char";
margin-top:0in;
margin-right:0in;
margin-bottom:15.0pt;
margin-left:0in;
border:none;
padding:0in;
font-size:26.0pt;
font-family:"Cambria","serif";
color:#17365D;
letter-spacing:.25pt;}
p.MsoTitleCxSpFirst, li.MsoTitleCxSpFirst, div.MsoTitleCxSpFirst
{mso-style-link:"Title Char";
margin:0in;
margin-bottom:.0001pt;
border:none;
padding:0in;
font-size:26.0pt;
font-family:"Cambria","serif";
color:#17365D;
letter-spacing:.25pt;}
p.MsoTitleCxSpMiddle, li.MsoTitleCxSpMiddle, div.MsoTitleCxSpMiddle
{mso-style-link:"Title Char";
margin:0in;
margin-bottom:.0001pt;
border:none;
padding:0in;
font-size:26.0pt;
font-family:"Cambria","serif";
color:#17365D;
letter-spacing:.25pt;}
p.MsoTitleCxSpLast, li.MsoTitleCxSpLast, div.MsoTitleCxSpLast
{mso-style-link:"Title Char";
margin-top:0in;
margin-right:0in;
margin-bottom:15.0pt;
margin-left:0in;
border:none;
padding:0in;
font-size:26.0pt;
font-family:"Cambria","serif";
color:#17365D;
letter-spacing:.25pt;}
p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle
{mso-style-link:"Subtitle Char";
margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
text-indent:-.25in;
font-size:12.0pt;
font-family:"Cambria","serif";
color:#4F81BD;
letter-spacing:.75pt;
font-style:italic;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.25in;
margin-bottom:.0001pt;
text-indent:-.25in;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
p.MsoQuote, li.MsoQuote, div.MsoQuote
{mso-style-link:"Quote Char";
margin-top:12.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-style:italic;}
p.MsoIntenseQuote, li.MsoIntenseQuote, div.MsoIntenseQuote
{mso-style-link:"Intense Quote Char";
margin-top:10.0pt;
margin-right:.65in;
margin-bottom:14.0pt;
margin-left:.65in;
border:none;
padding:0in;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:#4F81BD;
font-weight:bold;
font-style:italic;}
span.MsoSubtleEmphasis
{color:gray;
font-style:italic;}
span.MsoIntenseEmphasis
{color:#4F81BD;
font-weight:bold;
font-style:italic;}
span.MsoSubtleReference
{font-variant:small-caps;
color:#C0504D;
text-decoration:underline;}
span.MsoIntenseReference
{font-variant:small-caps;
color:#C0504D;
letter-spacing:.25pt;
font-weight:bold;
text-decoration:underline;}
span.MsoBookTitle
{font-variant:small-caps;
letter-spacing:.25pt;
font-weight:bold;}
p.MsoTocHeading, li.MsoTocHeading, div.MsoTocHeading
{margin-top:24.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Cambria","serif";
color:#365F91;
font-weight:bold;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-link:"Heading 1";
font-family:"Cambria","serif";
color:#365F91;
font-weight:bold;}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-link:"Heading 2";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
span.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-link:"Heading 3";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
span.Heading4Char
{mso-style-name:"Heading 4 Char";
mso-style-link:"Heading 4";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;
font-style:italic;}
span.Heading5Char
{mso-style-name:"Heading 5 Char";
mso-style-link:"Heading 5";
font-family:"Cambria","serif";
color:#243F60;}
span.Heading6Char
{mso-style-name:"Heading 6 Char";
mso-style-link:"Heading 6";
font-family:"Cambria","serif";
color:#243F60;
font-style:italic;}
span.Heading7Char
{mso-style-name:"Heading 7 Char";
mso-style-link:"Heading 7";
font-family:"Cambria","serif";
color:#404040;
font-style:italic;}
span.Heading8Char
{mso-style-name:"Heading 8 Char";
mso-style-link:"Heading 8";
font-family:"Cambria","serif";
color:#404040;}
span.Heading9Char
{mso-style-name:"Heading 9 Char";
mso-style-link:"Heading 9";
font-family:"Cambria","serif";
color:#404040;
font-style:italic;}
span.TitleChar
{mso-style-name:"Title Char";
mso-style-link:Title;
font-family:"Cambria","serif";
color:#17365D;
letter-spacing:.25pt;}
span.SubtitleChar
{mso-style-name:"Subtitle Char";
mso-style-link:Subtitle;
font-family:"Cambria","serif";
color:#4F81BD;
letter-spacing:.75pt;
font-style:italic;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.QuoteChar
{mso-style-name:"Quote Char";
mso-style-link:Quote;
color:black;
font-style:italic;}
span.IntenseQuoteChar
{mso-style-name:"Intense Quote Char";
mso-style-link:"Intense Quote";
color:#4F81BD;
font-weight:bold;
font-style:italic;}
span.CodeChar
{mso-style-name:"Code Char";
mso-style-link:Code;
font-family:"Lucida Console";}
p.Code, li.Code, div.Code
{mso-style-name:Code;
mso-style-link:"Code Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Lucida Console";}
span.ui
{mso-style-name:ui;
font-weight:bold;}
span.code0
{mso-style-name:code;
font-family:"Courier New";
color:#000066;}
.MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
/* List Definitions */
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><b><span style='font-size:16.0pt'>Samples in the Windows SDK</span></b></p>
<p class=MsoNormal>This page provides information on working with the samples
that are included in the Windows SDK. For known issues with individual
samples, please refer to the Release Notes included with the SDK or the updated
version which is <a
href="http://go.microsoft.com/fwlink/?LinkId=154433">posted
online</a>.</p>
<p class=MsoNormal>The Windows SDK samples cover numerous technology areas.
The SDK includes samples that use managed code and those that primarily use
native code, to provide working examples of code for developers at all levels
to experiment with and learn from.</p>
<p class=MsoToc1><a name="_.NET_Framework_(managed"></a><span
style='font-size:10.0pt'><span class=MsoHyperlink><a href="#_Toc214696552">.NET
Framework (managed code) Samples<span style='color:windowtext;display:none;
text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>1</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696553">.NET Framework samples in .zip format<span
style='color:windowtext;display:none;text-decoration:none'> </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></span></p>
<p class=MsoToc1><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696554">Win32 (native code) Samples<span style='color:windowtext;
display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696555">Building Samples<span style='color:windowtext;display:
none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></span></p>
<p class=MsoToc3><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Building_with_Win_7">Building with the Windows 7 headers, libraries, and tools<span style='color:windowtext;display:none;text-decoration:
none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>3</span></a></span></span></p>
<p class=MsoToc3><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696556">Upgrading C++ Sample Project Files for Visual Studio 2008
or the VC++ 9.0 Compilers<span style='color:windowtext;display:none;text-decoration:
none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>3</span></a></span></span></p>
<p class=MsoToc3><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696558">ATL/MFC Dependency<span style='color:windowtext;
display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>3</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696560">How to: Build from the Windows SDK Command Line<span
style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>3</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_HT_Set_Switches">How-to: Set Build Environment Switches<span style='color:windowtext;display:none;text-decoration:
none'>.. </span><span
style='color:windowtext;display:none;text-decoration:none'>4</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_HT_DX_SDK">How-to: Use the DirectX SDK when Visual Studio 2008 is installed<span style='color:windowtext;display:none;text-decoration:
none'>.. </span><span
style='color:windowtext;display:none;text-decoration:none'>4</span></a></span></span></p>
<p class=MsoToc2><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696562">How to: Add 64-Bit Support to VC Project Files<span
style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>4</span></a></span></span></p>
<p class=MsoToc3><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696563">To set up C++ applications to target 64-bit platforms<span
style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>4</span></a></span></span></p>
<p class=MsoToc3><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Toc214696564">To copy Win32 project settings into a 64-bit project
configuration<span style='color:windowtext;display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>5</span></a></span></span></p>
<p class=MsoToc1><span class=MsoHyperlink><span style='font-size:10.0pt'><a
href="#_Additional_Troubleshooting">Additional Troubleshooting<span style='color:windowtext;
display:none;text-decoration:none'>. </span><span
style='color:windowtext;display:none;text-decoration:none'>2</span></a></span></span></p>
<p class=MsoNormal> </p>
<h1><a name="_Toc214696552">.NET Framework (managed code) Samples</a></h1>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Microsoft .NET Framework (2.0, 3.0, and 3.5) samples are installed
with the SDK documentation, so you can view and browse samples in context with
the rest of the documentation about the .NET Framework. These samples can also
be installed to your computers hard drive in .zip format (</span><a
href="#_.NET_Framework_samples"><span style='font-size:8.5pt;font-family:"Verdana","sans-serif"'>see
below</span></a><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>) if you do not wish to install the SDK documentation. Either the
SDK documentation or .NET Samples in .zip format must be selected during SDK
set up in order to access these samples. </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>The .NET Framework samples span several technology areas and
provide solutions using managed code in the Windows operating systems. These
samples fall into three main categories: </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Sample applications users can download, build, and run, ranging
from Hello World type applications to more complex samples.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Tutorial-like examples, often presented in topics which teach how
to build a sample application, taking users from a blank screen to a running
application. </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Code snippets which are embedded in topics throughout the doc set.
The most common example of this type of code is found in API reference topics,
which often contain small code blocks showing the syntax and usage of the
members of an API. Doc teams generally own code snippets.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Sample documentation topics contain options for viewing and
copying sample source files and for downloading sample projects as zip files to
a your computer. Each sample topic contains at least one source code selection
box that lists all the sample files. There is one box for each programming
language provided by the sample. <a name="_.NET_Framework_samples"></a></span></p>
<h2><a name="_Toc214696553">.NET Framework samples in .zip format</a></h2>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>The .NET Framework samples are also available in .zip format
installed by default to C:\Program Files\Microsoft SDKs\Windows\v7.0\samples. This
content can be deselected during SDK setup. The .zip files allow you to extract
large subsets of samples at once. The .zip files installed are the following: </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Cardspace_Samples.zip</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>CrossTechnologySamples.zip</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>FrameworkSamples.zip</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>WCFSamples.zip </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>WFSamples.zip </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:24.0pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>WPFSamples.zip </span></p>
<h1><a name="_Toc214696554"></a><a name="_Win32_(unmanaged_code)"></a>Win32 (native
code) Samples</h1>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>The Windows samples demonstrate Windows operating system features
primarily using native code. These unmanaged Win32 samples are not included in
the documentation. They are installed as loose files under the default samples
location C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples. This content can
be deselected during SDK setup. A few samples with some managed code
(PowerShell, Tablet PC, and a few others) install with the Win32 samples. </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>The Win32 samples directory layout for the Windows SDK is:</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Begin</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Com</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\DataAccess</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Multimedia</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\NetDS</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Security</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\SysMgmt</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\TabletPC</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Touch</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\Web</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\WinBase</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\WinUI</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>\XPS</span></p>
<h2><a name="_Toc214696555">Building Samples</a> </h2>
<h3><a name="_Building_with_Win_7">Building with the Windows 7 headers, libraries, and tools</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>In order to utilize Windows SDK headers, libraries, and tools from within
the Windows SDK command line build environment or from within Visual Studio 2005/2008
build environments, the SDK-provided Windows SDK Configuration Tool must be run. The
Windows SDK Configuration Tool must be run for each user on Windows Vista or later.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>You can build Win32 applications out-of-the-box with the Vista SDK components
that are embedded in Visual Studio 2008. You can switch to the more recent components that
ship with the Windows SDK for Windows 7 by using the Windows SDK Configuration Tool.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>To run the Windows SDK Configuration Tool, go to Start > All Programs >
Microsoft Windows SDK v7.0 > Visual Studio Registration > Windows SDK Configuration Tool.</span></p>
<h3><a name="_Toc214696556">Upgrading C++ Sample Project Files for Visual
Studio 2008 or the VC++ 9.0 Compilers</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>To build samples in either the SDK command line build environment
or in Microsoft Visual Studio 2008, some samples project files must be
upgraded. This step is not necessary when building in Visual Studio 2005. This
is because some samples in the SDK ship with native Visual Studio 2005 project
files that must be upgraded to work with the compilation system shipped in the
Windows SDK, which is the same version as shipped in Visual Studio 2008 SP1. </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>To upgrade the project in the current directory, type <b>vcbuild
/upgrade </b>or<b> devenv /upgrade</b> in the SDK Build environment.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Microsoft .NET Framework sample project files cannot be upgraded using
the workaround above. The files must be upgraded using <b>vcbuild /upgrade
/overrideRefVer SampleName.vcproj</b>. Visual Studio must be installed in order
for this command to work. The <b>upgrade /overriderefver</b> switch indicates
that it will use the .NET Framework.</span></p>
<h3><a name="_Toc214696558">ATL/MFC Dependency</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Some samples require ATL and/or MFC headers, libraries, or
runtime, which are included with Visual C++ (non-Express editions).</span></p>
<h3><a name="_Toc214696560">How to: Build from the Windows SDK Command Line</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>This guide demonstrates how to build a sample or application from
the Windows SDK command line. </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Copy your application or sample to a working folder not under
\Program Files.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Open the Windows SDK CMD shell (Start </span><span
style='font-size:8.5pt;font-family:"Arial","sans-serif";color:black'>→</span><span
style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:black'> All
Programs </span><span style='font-size:8.5pt;font-family:"Arial","sans-serif";
color:black'>→</span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'> Windows SDK v7.0 </span><span style='font-size:8.5pt;font-family:
"Arial","sans-serif";color:black'>→</span><span style='font-size:8.5pt;
font-family:"Verdana","sans-serif";color:black'> SDK CMD Shell).</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Navigate to the directory where your sample or application can be
found.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>4.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a sample or project from the command line as follows,
depending upon the type of project file:</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:33.75pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a makefile by typing </span><span class=code0><span
style='font-size:9.0pt'>nmake</span></span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:33.75pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a .csproj file by typing </span><span class=code0><span
style='font-size:9.0pt'>msbuild *.csproj /p:platform=[ win32 | X64 | IA64]</span></span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:33.75pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a .vbproj file by typing </span><span class=code0><span
style='font-size:9.0pt'>msbuild *.vbproj /p:platform=[ win32 | X64 | IA64]</span></span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:33.75pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a .sln file by typing </span><span class=code0><span
style='font-size:9.0pt'>msbuild *.sln /p:platform=[ win32 | X64 | IA64]</span></span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:33.75pt;text-indent:-.25in'><span style='font-size:10.0pt;
font-family:Symbol;color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Build a .vcproj by typing </span><span class=code0><span
style='font-size:9.0pt'>vcbuild *.vcproj /platform=[ win32 | X64 | IA64 ]</span></span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>When building with </span><span class=code0><span
style='font-size:9.0pt'>msbuild</span></span><span style='font-size:8.5pt;
font-family:"Verdana","sans-serif";color:black'>, you should specify a target
platform. If a project is configured to build for several different platform
types and you do not specify which platform you want to build for, the first
platform listed in the solution or project file will be built. Configurations
are listed in alphabetical order by Visual Studio, so "Itanium" might
be the first configuration listed.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>If you want to build an application configured for an X86 machine,
specify "win32":</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span class=code0><span style='font-size:9.0pt'>msbuild
mysample.vbproj /p:platform=win32</span></span><span style='font-size:8.5pt;
font-family:"Verdana","sans-serif";color:black'> </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>If you want to build an application configured for an X64 machine,
specify "X64":</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span class=code0><span style='font-size:9.0pt'>msbuild mysample.vbproj
/p:platform=X64</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'> </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>If you want to build an X64 application, but your project does not
have an X64 configuration, see </span><a href="#_How_to:_Add"><span
style='font-size:8.5pt;font-family:"Verdana","sans-serif"'>How to: Add 64-Bit
Support to VC Project Files</span></a><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>.</span></p>
<h3><a name="_HT_Set_Switches">How to: Set Build Environment Switches</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>To set the Windows 7 SDK command line build environment, use the setenv.cmd
tool within a debug cmd shell by following the steps below.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Launch the Windows SDK build environment. From the Start menu, click on All Programs >
Microsoft Windows SDK v7.0 > CMD Shell. </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Set the build environment. At the prompt, type:
"C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin\setenv.cmd" [/target]
</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>The list of available targets is shown below.</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Usage: "Setenv [/Debug | /Release][/x86 | /x64 | /ia64][/vista | /xp | /2003 | / 2008 /win7 ] [-h or /?]" </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/Debug - Create a Debug configuration build environment </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/Release - Create a Release configuration build environment </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/x86 - Create 32-bit x86 applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/x64 - Create 64-bit x64 applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/ia64 - Create 64-bit IA64 applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/vista - Windows Vista applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/xp - Create Windows XP SP2 applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/2003 - Create Windows Server 2003 applications </span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/2008 - Create Windows Server 2008 or Windows Vista SP1 applications</span></p>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>/win7 - Create Windows 7 applications</span></p>
<h3><a name="_HT_DX_SDK">How to: Use the DirectX SDK when Visual Studio 2008 is installed</a></h3>
<p class=MsoNormal style='margin-top:7.5pt;margin-right:0in;margin-bottom:3.75pt;
margin-left:0in'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>In order to utilize DirectX SDK resources when using MSBuild in the Windows SDK build environment,
you should ensure that the DirectX SDK include, library, and executables directories are set correctly in
Visual Studio 2008. The order in which Visual Studio 2008 looks for executable directories and library files
is important. The Windows SDK directories should appear above the DirectX SDK directories.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Launch Visual Studio 2008.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Open the Tools menu and select Options
. The Options dialog box appears.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>In the left pane of the Options dialog box, expand the Projects and Solutions node.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>4.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Under Project and Solutions, select VC++ Directories.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>5.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>In the right pane, set the "Platform" drop-down list box to Win32® and the "Show directories for"
drop-down list box to "Executable" files. </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>6.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>At the bottom of the list of executable file directories, create a new entry for the DirectX SDK:
[drive]:\Program Files\Microsoft DirectX SDK [version]\Utilities\bin\x86 (If there is already such an entry,
move it to the bottom of the list.) </span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>7.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:black'>Set the "Show directories for" drop-down list box to "Include" files.</span></p>
<p class=MsoNormal style='margin-top:1.5pt;margin-right:0in;margin-bottom:1.5pt;
margin-left:21.0pt;text-indent:-.25in'><span style='font-size:8.5pt;font-family:
"Verdana","sans-serif";color:black'>8.<span style='font:7.0pt "Times New Roman"'>