Skip to content

Latest commit

 

History

History
81 lines (68 loc) · 1.78 KB

File metadata and controls

81 lines (68 loc) · 1.78 KB
title lcid | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
vc-attr.lcid
dev_langs
C++
helpviewer_keywords
LCID attribute
ms.assetid 7f248c69-ee1c-42c3-9411-39cf27c9f43d
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

lcid

Lets you pass a locale identifier to a function.

Syntax

  
[lcid]  
  

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.

Example

// 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);  
};  

Requirements

Attribute Context

Applies to Interface parameter
Repeatable No
Required attributes None
Invalid attributes None

For more information, see Attribute Contexts.

See Also

IDL Attributes
Parameter Attributes