helpfile attribute

The [helpfile] attribute sets the name of the Help file for a type library. All types in a library share the same Help file.

[
    uuid(uuid-number), 
    helpfile("filename") 
    [, optional-attribute-list]
] 
library 
{
    library statements
};

Parameters

uuid-number

Specifies a universally unique identification number for the library.

filename

Specifies the name of the file containing the help text.

optional-attribute-list

Specifies zero or more attributes that the MIDL compiler will apply to the library.

library statements

Specifies one or more MIDL statements that define the library interface.

Remarks

Use the GetDocumentation functions in the ITypeLib and ITypeInfo interfaces to retrieve the file name.

Examples

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676),
    helpfile("filename.hlp"),
    lcid(0x0409), 
    version(2.0)
]
library Hello
{
    /* Library definition statements here. */
};

See also

library

ODL File Syntax

ODL File Example

Generating a Type Library With MIDL