Groups > Borland > Borland C plus plus builder Active X > Compiler Error After Importing ActiveX control




Compiler Error After Importing ActiveX control

Compiler Error After Importing ActiveX control
Thu, 6 Mar 2008 22:09:13 -0500
I am using the Import ActiveX Control wizard in BCB6.  I select the ActiveX 
control I want to add, hit the install button, and put it in a new package. 
When I compile the package I get the error shown below:

// *********************************************************************//
// SmartIntf: TCOM_daqGrid
// Interface: _daqGrid
// *********************************************************************//
template <class T /* _daqGrid */ >
class TCOM_daqGridT : public TComInterface<_daqGrid>, public 
TComInterfaceBase<IUnknown>
{
public:
  TCOM_daqGridT() {} // <--  this line is causing the error
  TCOM_daqGridT(_daqGrid *intf, bool addRef = false) : 
TComInterface<_daqGrid>(intf, addRef) {}
  TCOM_daqGridT(const TCOM_daqGridT& src) :
TComInterface<_daqGrid>(src) {}
  TCOM_daqGridT& operator=(const TCOM_daqGridT& src) { Bind(src, true);

return *this;}

[C++ Error] DaqGridControl_TLB.h(1359): E2251 Cannot find default 
constructor to initialize base class
'TComInterface<_daqGrid,&GUID_NULL>'


The strange thing is, I tried this on a different computer and the package 
actually compiled with no errors.  Any ideas as to what the problem is?

Thanks for your help.
Phil


Post Reply
about | contact