/Vmb /Vmg
These options select the method that the compiler uses to represent pointers to class members. You can also use #pragma pointers_to_members or inheritance keywords in your code to specify a pointer representation.
Command line | Project settings | Description |
---|---|---|
/vmb | Best-Case Always | Use this option if you always define a class before you declare a pointer to a member of the class. |
/vmg | General-Purpose Always | Use this option if you need to declare a pointer to a member of a class before defining the class. This need can arise if you define members in two different classes that reference each other. For such mutually referencing classes, one class must be referenced before it is defined. You must then choose an inheritance model from the General Purpose Representation drop-down list box. |
Compiler Options | Setting Compiler Options