PinningPtrs Sample: Demonstrates Pinning Pointers to Managed Data
This documentation is archived and is not being maintained.

PinningPtrs Sample: Demonstrates Pinning Pointers to Managed Data

Visual Studio .NET 2003

The PinningPtrs sample illustrates several techniques for working with pinned and unpinned managed pointers. The H class implements two functions (mf1 and mf2). These functions demonstrate various ways of pinning and unpinning managed pointers. In addition, several limitations are demonstrated.

Building and Running the Sample

To build and run PinningPtrs using Visual Studio

  1. In the Visual Studio IDE, load the solution file PinningPtrs.sln.
  2. In Solution Explorer, right-click the PinningPtrs solution.
  3. On the shortcut menu, click Build.
  4. On the Debug menu, click Start.

See Also

Managed Extensions for C++ Samples

Show:
© 2016 Microsoft