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!

class problem

Status
Not open for further replies.

Vinay355

Programmer
Dec 12, 2006
12
IN
hi,
i want to put my base class in the main window. And write the inheritance classin the cpp file. i haev includeed this file to the main file. when i am declaring the destructor tothe inheritance class ,i am getting the error"Conflict in the destrcutor of the base class with the main class"..How can i solve?

Vinay
 
Well, without seeing any of your code, the first thing that pops into my head is you descendant destructor has the same signature as the base class. If you are positive you need the descendant's destructor, make it a virtual destructor; that should eliminate the conflict.

90% of all questions can be answer by the Help file! Try it and be amazed.
 
I have gone thouigh the helpfile and i am using the sample code given. facing errors *.dfm file not found.if i doesn't include this file, the prog is working fine. But when i declare the object to use the class, i am facing the error.

What shall i do?

vinay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top