XLL+ Class Library

CXllCom::Init

Initialise the CXllCom object

[C++]
BOOL Init(
   CString& strError,
   HRESULT& hr
);

Parameters

strError

If an error occurs, a description will be placed in this string.

hr

If a COM error occurs, the error code will be placed here.

Return value

Returns TRUE if successful and FALSE if initialisation failed. The values of the strError and (optionally) hr parameters will be set on failure.

Remarks

Initialises a connection to Excel's COM interface. This method must be called before any other CXllCom methods can be used. It is advisable to call it during CXllApp::OnXllOpenEx().

Requirements

Header: xlpcom.h

See Also

CXllCom Class | CXllCom Methods | CXllCom::Term()