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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

declaring a derived class in a new unit

Status
Not open for further replies.

holdingprice

Programmer
Apr 8, 2003
5
GB
i am trying to declaire a derived class from a base class in a new unit. I have added the header file for the base unit but i still keep getting the following message.

"E2303 Type name expected"

is there something else i should add as i am assuming the base class cant be seen?
 
your question seems not to be very explicit.

The only thing that I can tell you is to follow the files like BCB do to make the header files and class units files


---LastCyborg---
 
It sounds like you are including the files you think are required, but that maybe some are missing. Does it look similar to this?

#include <vcl.h>
#include &quot;mycode.h&quot;

class TVCLBaseClass : public TObject
{
public:
int MyInt;
}; <-- Don't forget the semicolon.

class TMyOwnBaseClass : public TMyObject
{
public:
int MyInt;
};

Maybe paste the code and we can help further if that didn't help. Good luck!

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top