| description |
Learn more about: lcid |
| title |
lcid (C++ COM Attribute) |
| ms.date |
10/02/2018 |
| f1_keywords |
|
| helpviewer_keywords |
|
| ms.assetid |
7f248c69-ee1c-42c3-9411-39cf27c9f43d |
Lets you pass a locale identifier to a function.
Remarks
The lcid C++ attribute implements the functionality of the lcid MIDL attribute. If you want to implement locale for a library block, use the lcid=lcid parameter to the module attribute.
// cpp_attr_ref_lcid.cpp
// compile with: /LD
#include <unknwn.h>
[module(name="MyLibrary")];
typedef long HRESULT;
[dual, uuid("2F5F63F1-16DA-11d2-9E7B-00C04FB926DA")]
__interface IStatic {
HRESULT MyFunc([in, lcid] long LocaleID, [out, retval] BSTR * ReturnVal);
};
| Attribute context |
Value |
| Applies to |
Interface parameter |
| Repeatable |
No |
| Required attributes |
None |
| Invalid attributes |
None |
For more information, see Attribute Contexts.
IDL Attributes
Parameter Attributes