Export (0) Print
Expand All
Expand Minimize
2 out of 2 rated this helpful - Rate this topic

/vmb, /vmg (Representation Method)

Select the method that the compiler uses to represent pointers to class members.

Use /vmb if you always define a class before you declare a pointer to a member of the class.

Use /vmg 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.


/vmb
/vmg

You can also use pointers_to_members or Inheritance Keywords in your code to specify a pointer representation.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Command Line property page.

  4. Type the compiler option in the Additional Options box.

To set this compiler option programmatically

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.