Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

static ComponentEntry myComponent;   extern "C" __declspec(dllexport) int Initialise(HostAPI* pHost, HostModuleHandle hModule, LPCWSTR szRegistryPath) { // other initialisation ommitted   myComponent.hComponentPrivate = &myComponent; return RegisterComponent(hModule, &myComponent); }

A space for some private data to be stored by your component for access in functions that pass you a ComponentEntry * such as Notify and InitInterfaces among others.

Vardef
NamehComponentPrivate
Linkedtrue
TypeComponentContextHandle
StyleMember

Handle used by a component to associate itself with the host framework. You typically set this to the address of your own ComponentEntry.

Code Block
Vardef
NameQueryInitInterfaces
LinkedNametrue
Linkedtrue
TypeQueryInitInterfacesFunc
StyleMember

Pointer to the function to query whether the interfaces for the component can be initialised. See Remarks

...