Export (0) Print
Expand All
COM
id
in
int
odl
out
ptr
ref
Expand Minimize
This topic has not yet been rated - Rate this topic

public attribute

The [public] attribute includes an alias declared with the typedef keyword in the type library.


typedef [public] data-type identifier;

Parameters

data-type

The data type that the identifier will be an alias for.

identifier

Another name by which data-type will be known in the software.

Remarks

By default, an alias that is declared with typedef and has no other attributes is treated as a #define and is not included in the type library. Using the [public] attribute ensures that the alias becomes part of the type library.

Note  The MIDL compiler requires that you explicitly apply the [public] attribute to each typedef that you want public.

Examples

typedef [public] long MEMBERID;

See also

Generating a Type Library With MIDL
ODL File Example
interface
ODL File Syntax
typedef

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.