出错信息:
:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(2398) : error C2512: 'CAllInstrument' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(2398) : while compiling class-template member function '__thiscall ATL::CComObject<class CAllInstrument>::ATL::CComObject<class CAllInstrument>(void *)'构造涵数:
CAllInstrument(int address, int Sad=NO_SAD,int GPIBBoardIndex=0)
: m_clsR3267(address,Sad,GPIBBoardIndex)
{
}咋办,请各位高手多多指点谢谢!.
:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(2398) : error C2512: 'CAllInstrument' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(2398) : while compiling class-template member function '__thiscall ATL::CComObject<class CAllInstrument>::ATL::CComObject<class CAllInstrument>(void *)'构造涵数:
CAllInstrument(int address, int Sad=NO_SAD,int GPIBBoardIndex=0)
: m_clsR3267(address,Sad,GPIBBoardIndex)
{
}咋办,请各位高手多多指点谢谢!.
解决方案 »
- 先进两次临界区再退两次,行不行
- 请教一个关于视图分割的问题?
- 哪位朋友有以前版本的DirectX SDK?多谢了!
- cformview里加richedit如何设置多行?-在线等
- 我想在一个对话框domodal之后,再DoModal一个对话框,但是却一闪而过,怎么回事?
- 快帮我拯救我的硬盘数据,我饭碗要丟了?
- 菜鸟,建立一个工具栏 建立一个 hanio 的按钮 ,可是不知道如何编写hanio按钮的函数,来触发演示程序。/。
- 关于系统发声声音的默认设置,如男声和女声的区别?
- 求VC++ 程序 封装成支持C#多线程调用的DLL操作方法或资料!
- 一个古怪的编译错误,请各位大虾指点迷津
- WinExec怎么用啊????????
- 新手问题:为何错误
再或者楼主自己实现类厂,在IClassFactory::CreateInstance中给出初始化参数,但这就要求类厂给出初始化参数,但是IClassFactory中并没有提供一个类似的接口可以让客户传递初始化参数,因此是不行的。
不知道楼主原来是打算怎样让客户将初始化参数传递给组件的?