VC++ Extensions
Preprocessor
#pragma once- Put at the top of every .cpp file. (Not part of the standard, but it should be. gcc now has it, too.)#import- Loads a type library
Macros
_DEBUG-
__FUNCDNAME__,__FUNCSIG__, and__FUNCTION__
Calling Conventions
__cdecl- Parameters are placed onto the stack from right to left, and the caller is responsible for popping them off the stack after the function returns.__cdeclis the default.__stdcall- Parameters are placed onto the stack from right to left, and the function is responsible for popping them off the stack before returning.va_args are not possible.__stdcallis the COM calling convention.
Classes
_com_ptr_t_bstr_t_variant_t_com_error
Precompiled Headers
- VS AppWizard creates by default.
Other Dialects
Microsoft also created C++/CLI for DotNET, and C++/CX & C++/WinRT for WinRT.