jbpelletier
Programmer
Here is my problem...
i dont know how i should implement the TSquare class witch is inherited from TShape... i tried different thing but i already have an error in relation with the construtor...
-UMain.cpp------------------
#include "Uboard.h"
.....
TFrmMain *FrmMain;
Board TBoard(FrmMain);
.....
-UBoard.h-----------------
#include "USquare.h"
.....
class TBoard
{
protected:
.....
public:
TBoard(TComponent*); //const : build an array 8*8
//of Tsquare
.....
};
-USquare.h-----------------
class TSquare:TShape
{
protected:
.....
public:
TSquare(??????????); //construtor
.....
};
TSquare::TSquare(???????):TShape(???????)
{
......
}
------------------------------
any help will be apreciate....
jb pelletier
i dont know how i should implement the TSquare class witch is inherited from TShape... i tried different thing but i already have an error in relation with the construtor...
-UMain.cpp------------------
#include "Uboard.h"
.....
TFrmMain *FrmMain;
Board TBoard(FrmMain);
.....
-UBoard.h-----------------
#include "USquare.h"
.....
class TBoard
{
protected:
.....
public:
TBoard(TComponent*); //const : build an array 8*8
//of Tsquare
.....
};
-USquare.h-----------------
class TSquare:TShape
{
protected:
.....
public:
TSquare(??????????); //construtor
.....
};
TSquare::TSquare(???????):TShape(???????)
{
......
}
------------------------------
any help will be apreciate....
jb pelletier