How to load a control specified at Runtime?
Call AtlAxWinInit();
Create a CAxWindow object CAxWindow wnd ;
Create a host window
RECT rect = { 0, 0, 100, 100 };
wnd.Create(m_hWnd, rect, _T("MSCAL.Calendar"), WS_CHILD | WS_VISIBLE|IBLE |
WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE);
For more details on ATL Windowing, see ATL Tutorial by example.