Professional ASP.NET 1.1 [Electronic resources]

Alex Homeret

نسخه متنی -صفحه : 243/ 35
نمايش فراداده

l xmlns="http://www.w3.org/1999/l">

  • C++

    Since C++ already has object-oriented features, the VC++ implementation supplied with Visual Studio .NET provides support for managed code. At the minimum, you must include the following two lines at the top of your code:

    #using <mscorlib.dll>
    using namespace System;
    

    These give you access to the .NET classes. You must also add the /CLR compiler option when building the executable.

    Details of working with the managed extensions for C++ are outside the scope of this book, so you should consult the documentation for more details.