Expert C++/CLI NET for Visual C++ Programmers phần 2 pot

Expert C++/CLI .NET for Visual C++ Programmers phần 1 pot

Expert C++/CLI .NET for Visual C++ Programmers phần 1 pot

... Germany February 20 07 xvii Expert C++/ CLI: .NET for Visual C++ Programmers Copyright © 20 07 by Marcus Heege All rights reserved. No part of this work may be reproduced or transmitted in any form or by ... introduced for this null value. CHAPTER 2 ■ MANAGED TYPES, INSTANCES, AND MEMORY16 Table 2- 1 shows commonly used primitives provided by the runtime. Table 2- 1. CTS...

Ngày tải lên: 12/08/2014, 16:21

34 389 0
Expert C++/CLI .NET for Visual C++ Programmers phần 2 pot

Expert C++/CLI .NET for Visual C++ Programmers phần 2 pot

... follows: array<int, 2& gt;^ intsquare2 = gcnew array<int, 2& gt;(3, 3); intsquare2[0, 0] = 1; intsquare2[0, 1] = 2; intsquare2[0, 2] = 3; intsquare2[1, 0] = 4; intsquare2[1, 1] = 5; intsquare2[1, 2] = 6; intsquare2 [2, ... intsquare2[1, 1] = 5; intsquare2[1, 2] = 6; intsquare2 [2, 0] = 7; intsquare2 [2, 1] = 8; intsquare2 [2, 2] = 9; Although both approaches look quite different,...

Ngày tải lên: 12/08/2014, 16:21

33 327 0
Expert C++/CLI .NET for Visual C++ Programmers phần 3 pps

Expert C++/CLI .NET for Visual C++ Programmers phần 3 pps

... follows: System::Runtime::Serialization::Formatters::Binary::BinaryFormatter and System::Runtime::Serialization::Formatters::Soap::SoapFormatter. For real-life applica- tions, BinaryFormatter is preferable. It is faster, ... target platform. For assemblies that depend on the 32- bit CLR, the command line is as follows: al /link:MyLibrary.dll.config /platform:x86 /out:policy.0.0.myLibrary...

Ngày tải lên: 12/08/2014, 16:21

33 314 0
Expert C++/CLI .NET for Visual C++ Programmers phần 5 potx

Expert C++/CLI .NET for Visual C++ Programmers phần 5 potx

... USING C++/ CLI TO EXTEND VISUAL C++ PROJECTS WITH MANAGED CODE1 52 145CHAPTER 7 ■ USING C++/ CLI TO EXTEND VISUAL C++ PROJECTS WITH MANAGED CODE the process loading the DLL has either started CLR 2. 0 ... with Visual C++ 20 05 and C++/ CLI automatically load and start version 2. 0 of the CLR during application startup. However, you still have to ensure that all assemb...

Ngày tải lên: 12/08/2014, 16:21

33 252 0
Expert C++/CLI .NET for Visual C++ Programmers phần 6 pot

Expert C++/CLI .NET for Visual C++ Programmers phần 6 pot

... performance counters that are useful for this case. Figure 7-4 shows how you can inspect statistics about .NET garbage collection in PerfMon.exe. CHAPTER 7 ■ USING C++/ CLI TO EXTEND VISUAL C++ ... pi) { *pi = 42; } To map this C++ source code to IL, the C++/ CLI compiler generates the following code: // *pi = 42; ldarg.0 // Push the first argument (int* pi) on the stack ldc....

Ngày tải lên: 12/08/2014, 16:21

33 556 0
Expert C++/CLI .NET for Visual C++ Programmers phần 8 pps

Expert C++/CLI .NET for Visual C++ Programmers phần 8 pps

... mentioned. An obvious limit is that you can easily forget to call Dispose. C++/ CLI and the managed libraries shipped with Visual C++ provide various features for disposing objects. You can either dispose ... type [CLSCompliant(false)] void M2(unsigned int); }; } Unfortunately, the C++/ CLI compiler does not emit warnings when a type or a function is marked as CLS-compliant even i...

Ngày tải lên: 12/08/2014, 16:21

33 270 0
Expert C++/CLI .NET for Visual C++ Programmers phần 9 potx

Expert C++/CLI .NET for Visual C++ Programmers phần 9 potx

... error: expected C++ keyword.” According to the C++/ CLI standard, “The string-literal form is reserved for use by C++/ CLI imple- mentations.” Integrating the CRT is part of the C++/ CLI implementation. ... handle-recycling attack. For more information on handle-recycling attacks, see http://blogs.msdn.com/bclteam/archive /20 06/06 /23 /644343.aspx and www. freepatentsonline.c...

Ngày tải lên: 12/08/2014, 16:21

33 299 0
w