Advanced Unsafe or Unmanaged C++ .NET Programming


In the previous chapter, you dealt for the most part with the mixing of unsafe (or unmanaged) code directly into your safe (or managed) code. This approach only works if you have access to all the source code. Unfortunately, that is not a luxury that we developers always have. This chapter will address this issue by covering how C++/CLI interfaces with code that
  • You don’t have access to.

  • Accesses objects outside of the .NET sandbox and can’t be accessed with a .NET language.

  • Is written in a language not supported by .NET.

  • Has a perfectly acceptable non-.NET implementation; rewriting would be a waste of time, money, and/or resources.


Command Line Visual Studio Relative Path Safe Code Unsigned Integer 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Stephen R. G. Fraser 2009

Personalised recommendations