我用import方式把pdf.ocx加入工程:
#import "D:\Program Files\Adobe\Acrobat 6.0\Acrobat\ActiveX\pdf.ocx" rename_namespace("pdfReaderX") 
using namespace pdfReaderX;VC6生成pdf.tli和pdf.tlh。我把这俩个文件加入工程,然后在CView中定义一个变量
_DPdf m_pdf;
编译时报错:
error C2259: '_DPdf' : cannot instantiate abstract class due to following members:
        d:\pdfocx\debug\pdf.tlh(37) : see declaration of '_DPdf'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(109) : see declaration of 'QueryInterface'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(113) : see declaration of 'AddRef'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(115) : see declaration of 'Release'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2697) : see declaration of 'GetTypeInfoCount'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2700) : see declaration of 'GetTypeInfo'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetIDsOfNames(const struct _GUID &,unsigned short ** ,unsigned int,unsigned long,long *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2705) : see declaration of 'GetIDsOfNames'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::Invoke(long,const struct _GUID &,unsigned long,unsigned short,struct tagDISPPARAMS *,struct tagVARIANT *,struct tagEXCEPINFO *,unsigned int *)' : pure virtual function w
as not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2712) : see declaration of 'Invoke'
PDFOcxView.cpp
d:\pdfocx\pdfocxview.h(34) : error C2259: '_DPdf' : cannot instantiate abstract class due to following members:
        d:\pdfocx\debug\pdf.tlh(37) : see declaration of '_DPdf'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(109) : see declaration of 'QueryInterface'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(113) : see declaration of 'AddRef'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(115) : see declaration of 'Release'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2697) : see declaration of 'GetTypeInfoCount'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2700) : see declaration of 'GetTypeInfo'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetIDsOfNames(const struct _GUID &,unsigned short ** ,unsigned int,unsigned long,long *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2705) : see declaration of 'GetIDsOfNames'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::Invoke(long,const struct _GUID &,unsigned long,unsigned short,struct tagDISPPARAMS *,struct tagVARIANT *,struct tagEXCEPINFO *,unsigned int *)' : pure virtual function w
as not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2712) : see declaration of 'Invoke'
CntrItem.cpp
d:\pdfocx\pdfocxview.h(34) : error C2259: '_DPdf' : cannot instantiate abstract class due to following members:
        d:\pdfocx\debug\pdf.tlh(37) : see declaration of '_DPdf'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(109) : see declaration of 'QueryInterface'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::AddRef(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(113) : see declaration of 'AddRef'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'unsigned long __stdcall IUnknown::Release(void)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\unknwn.h(115) : see declaration of 'Release'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfoCount(unsigned int *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2697) : see declaration of 'GetTypeInfoCount'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetTypeInfo(unsigned int,unsigned long,struct ITypeInfo ** )' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2700) : see declaration of 'GetTypeInfo'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::GetIDsOfNames(const struct _GUID &,unsigned short ** ,unsigned int,unsigned long,long *)' : pure virtual function was not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2705) : see declaration of 'GetIDsOfNames'
d:\pdfocx\pdfocxview.h(34) : warning C4259: 'long __stdcall IDispatch::Invoke(long,const struct _GUID &,unsigned long,unsigned short,struct tagDISPPARAMS *,struct tagVARIANT *,struct tagEXCEPINFO *,unsigned int *)' : pure virtual function w
as not defined
        d:\program files\microsoft visual studio\vc98\include\oaidl.h(2712) : see declaration of 'Invoke'
Generating Code...
Error executing cl.exe.请问为什么?怎么解决?