Compartilhar via


/vmb - Use Best Case for Pointers (Windows CE 5.0)

Send Feedback

This option defines a class before it is declared a pointer to a member of the class. This is the compiler default.

When the compiler encounters the declaration of a pointer to a member of a class, it already has knowledge of the kind of inheritance used by the class. Thus, the compiler can use the smallest possible representation of a pointer and generate the smallest amount of code required to operate on the pointer for each kind of inheritance.

The compiler generates an error if it encounters the pointer declaration before the class definition. In this case, you must do one of the following:

  • Reorganize your code
  • Use the /vmg option with the /vms, /vmm, or /vmv option
  • Use the pointers_to_members pragma

You can also define the class using the __single_inheritance, __multiple_inheritance, or __virtual_inheritance keywords, allowing control of the code generated on a per-class basis.

The corresponding argument to the pointers_to_members pragma is best_case.

See Also

Compiler Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.