预订演示
前页 后页

SetCallbacks

C++ only. This only needs to be implemented in C++. The code in the example is sufficient and doesn't need to be modified. Extra error or bounds checking can be added.

Inputs

Parameter

Details

See also

const void ** callbackFunctions

An array of callback function pointers to be used to pass data back to Enterprise Architect.

Outputs via Callbacks

None

Details

C++ Plug-ins will receive this method soon after creation. It passes in an array of callback function pointers which are used by the Plug-in later on to pass data back to Enterprise Architect

Example Implementation

void ExampleServicePlugin::SetCallbacks(const void ** callbackFunctions)

{

    if (callbackFunctions)

    {

        Result = (ResultPtr)callbackFunctions[0];

        SetErrorCode = (SetErrorCodePtr)callbackFunctions[1];

        SetError = (SetErrorPtr)callbackFunctions[2];

        LogMessage = (LogMessagePtr)callbackFunctions[3];

    }

}