Sending the Load-Complete Event
The load complete event, as represented by the IDebugLoadCompleteEvent2 interface, is sent to the session debug manager (SDM) to indicate that all components needed for executing the program in the interpreter have been loaded.
To send the load complete event
Open the Program.cpp file, find the CProgram::EngineAttach method, and replace the line //TODO: ADD LOAD EVENT NOTIFICATION with the following:
CLoadCompleteEvent *pDLCE = new CLoadCompleteEvent; pDLCE->SendEvent(pCallback, m_spEngine, this, this);
Build the project to make sure there are no errors.