Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why do these conflict?

Status
Not open for further replies.

Prattaratt

Technical User
Aug 6, 2000
291
0
0
US
I am trying to overide the constructor for this object, but keep getting this error:
C++ Error] DBComboBox1.h(85): E2113 Virtual function '_fastcall TFieldProperty::TFieldProperty(const _di_IFormDesigner,int)' conflicts with base class 'TPropertyEditor'

Here's the code:
Code:
descendant declaration:
...
  protected:
  __fastcall virtual TFieldProperty(const _di_IFormDesigner ADesigner, int APropCount);
...

base declaration:
...
  protected:
	__fastcall virtual TPropertyEditor(const _di_IFormDesigner ADesigner, int APropCount);
...

not real sure why these would be conflicting, as the documentation says that this error occurs when the return type differs (obviuosly not, as they are constructors) or calling convention differs (don't think so, either).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top