For the MFC wrappers of ActiveX controls the call to make to get the ActiveX interface pointer is not GetOcx() as in C#. It is GetControlUnknown().
So this should be:
Code: Select all
m_pdf.Open( CString( "c:\\test.pdf"), NULL);
m_pages.Initialize( m_pdf.GetUnknown());
Hope that helps?
David