佚名通过本文主要向大家介绍了mscomm控件的问题,控件打开pdf出现问题,控件打开word出现问题,office控件出了点问题,office控件出了问题等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 控件绑定问题
描述:
描述:
我利用vc6.0的开发工具.
利用了pagelayoutcontrol 控件和toccontrol控件,
这两个控件都是ArcGis平台的
分别为:m_pagelayoutcontrol 和m_toccontrol
我想将这两个控件绑定到一起.:
m_toccontrol.setbuddycontrol(m_pagelayoutcontrol.GetIDispatch());
其中Setbuddycontrol(IDispatch*) 要求参数是IDispatch
编译正确.但是执行的时候弹出The object is not supported;
不知道是怎么回事.
如果这么绑定控件不正确的话.那么怎么才能用代码绑定这两个控件呀