Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Assigns VTBL offsets for virtual functions and instance offsets for per-instance data members, and creates the two type descriptions for dual interfaces.
Syntax
HRESULT LayOut();
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
Insufficient memory to complete the operation. |
|
Cannot write to the destination. |
|
Insufficient memory to complete the operation. |
|
Bound to unrecognized type. |
|
The state of the type library is not valid for this operation. |
|
Type mismatch. |
|
The element cannot be found. |
|
More than one item exists with this name. |
|
The type information is too long. |
|
Type mismatch. |
Remarks
LayOut also assigns member ID numbers to the functions and variables, unless the TYPEKIND of the class is TKIND_DISPATCH. Call LayOut after all members of the type information are defined, and before the type library is saved.
Use ICreateTypeLib::SaveAllChanges to save the type information after calling LayOut. Other members of the ICreateTypeInfo interface should not be called after calling LayOut.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |