Click to open or copy the AUTODRIV project files.
AUTODRIV is a simple Automation (formerly OLE Automation) client application that drives the AUTOCLIK tutorial sample. The AUTODRIV sample can be used to test AUTOCLIK. AUTODRIV is also a good demonstration of how to write an automation driver application.
To run AUTODRIV, you must first build and register the AUTOCLIK sample. AUTODRIV will launch the AUTOCLIK sample and create a document that you can manipulate using the interface provided by AUTODRIV.
See the Automation Server Tutorial for more information on the AUTODRIV user interface. This AUTODRIV sample is discussed in the AUTOCLIK tutorial.
This sample demonstrates the following keywords:
AfxGetApp; AfxMessageBox; AfxOleInit; CDC::DrawIcon; CDC::GetSafeHdc; CDialog::DoModal; CDialog::EndDialog; COleDispatchDriver::AttachDispatch; COleDispatchDriver::GetProperty; COleDispatchDriver::InvokeHelper; COleDispatchDriver::SetProperty; CRect::Height; CRect::Width; CWinApp::Enable3dControls; CWinApp::InitInstance; CWinApp::LoadStdProfileSettings; CWnd::DoDataExchange; CWnd::GetClientRect; CWnd::IsIconic; CWnd::OnClose; CWnd::OnCreate; CWnd::OnPaint; CWnd::OnQueryDragIcon; CWnd::SendMessage; CWnd::ShowWindow; CWnd::UpdateData; GetSystemMetrics; LoadIcon; ShowWindow