C++/CLI FAQ
This is a FAQ I started for C++/CLI (managed programming language for Visual C++ 2005). Here are the contents so far:
Basic Language Elements
- Getting a Type^ for a class
- Trivial Properties
- Ref and Out arguments on methods
- Boxing in C++/CLI
- How to declare methods with var arg lists
- What's the equivalent of C#'s "readonly" in C++/CLI?
- Passing stack allocated objects of ref types to functions expecting managed handles
Compiling
- The /clr and /MT switches are incompatible
- How to detect compilation with /clr?
- Compiling C++/CLI and MC++ code
- XML Comments
Handling Resources
Templates and Generics