In the sample application, ...\test\ChronicleMFCClient\ChronicleMFCClient.cpp, the function CChronicleMFCClientApp::InitializeChronicle() performs the initialization tasks. It is called in the application's InitInstance() as shown in this code fragment.
BOOL CChronicleMFCClientApp::InitInstance()
{
...
// [CHRONICLE] Initialization before new document opened.
InitializeChronicle();
...
}
The first thing InitializeChronicle() does is call the Chronicle::Facade::initialize() member function. This function automatically starts the Screencast recorder, but the recorder launches in hidden mode. In your application's UI, you can add a call to the showUtility() method to launch the recorder in front of the application.
void CChronicleMFCClientApp::InitializeChronicle()
{
// [CHRONICLE] Initialize facility.
Chronicle::Facade::initialize();
...