Skip to content

Commit 0457aba

Browse files
authored
Delete examples for obsolete API members (#11725)
1 parent 7a6e74a commit 0457aba

File tree

81 files changed

+1083
-4489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1083
-4489
lines changed

snippets/cpp/VS_Snippets_CLR/Marshal/cpp/marshal.cpp

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern bool CloseHandle(IntPtr h);
1414

1515
int main()
1616
{
17-
//<snippet2>
17+
//<snippet2>
1818
// Demonstrate the use of public static fields of the Marshal
1919
// class.
2020
Console::WriteLine(
@@ -23,18 +23,8 @@ int main()
2323
Marshal::SystemMaxDBCSCharSize);
2424
//</snippet2>
2525

26-
//<snippet3>
27-
// Demonstrate the use of the SizeOf method of the Marshal
28-
// class.
29-
Console::WriteLine("Number of bytes needed by a Point object: {0}",
30-
Marshal::SizeOf(Point::typeid));
31-
Point point;
32-
Console::WriteLine("Number of bytes needed by a Point object: {0}",
33-
Marshal::SizeOf(point));
34-
//</snippet3>
35-
3626
//<snippet4>
37-
// Demonstrate how to call GlobalAlloc and
27+
// Demonstrate how to call GlobalAlloc and
3828
// GlobalFree using the Marshal class.
3929
IntPtr hglobal = Marshal::AllocHGlobal(100);
4030
Marshal::FreeHGlobal(hglobal);
@@ -53,15 +43,13 @@ int main()
5343

5444
// This is a platform invoke prototype. SetLastError is true,
5545
// which allows the GetLastWin32Error method of the Marshal class
56-
// to work correctly.
46+
// to work correctly.
5747
[DllImport("Kernel32", ExactSpelling = true, SetLastError = true)]
5848
extern bool CloseHandle(IntPtr h);
5949
//</snippet5>
6050

6151
// This code produces the following output.
62-
//
52+
//
6353
// SystemDefaultCharSize=2, SystemMaxDBCSCharSize=1
64-
// Number of bytes needed by a Point object: 8
65-
// Number of bytes needed by a Point object: 8
6654
// CloseHandle call failed with an error code of: 6
6755
//</snippet1>

snippets/cpp/VS_Snippets_CLR/PtrToStructure/CPP/pts.cpp

Lines changed: 0 additions & 77 deletions
This file was deleted.

snippets/cpp/VS_Snippets_CLR_System/system.Security.Policy.PolicyStatement_Evt/CPP/members.cpp

Lines changed: 0 additions & 224 deletions
This file was deleted.

snippets/cpp/VS_Snippets_Remoting/HttpChannel/CPP/makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)