We recommend using Visual Studio 2017

local (C++)


The latest version of this topic can be found at local (C++).

When used in the interface header, allows you to use the MIDL compiler as a header generator. When used in an individual function, designates a local procedure for which no stubs are generated.


The local C++ attribute has the same functionality as the local MIDL attribute.

See call_as for an example of how to use local.

Attribute Context

Applies tointerface, interface method
Required attributesNone
Invalid attributesdispinterface

For more information, see Attribute Contexts.

IDL Attributes
Interface Attributes
Method Attributes
Attributes Samples