in test2dialognadlabel.cpp, line 32: CDialog D( &App, 5, 10, 50, 15, true, "+-+|+-+|");
Should it be this instead? CDialog D( 5, 10, 50, 15, true, "+-+|+-+|", &App,);
No, according to the prototype, the first argument is a pointer to the container CFrame (App in this case) and the last argument is the Border characters.
strange this is our prototype: CDialog( int Row = -1, int Col = -1, int Width = -1, int Height = -1, bool Bordered = false, const char* Border=C_BORDER_CHARS, CFrame *Container = (CFrame*)0 ); container is the last parameter
No, according to the prototype, the first argument is a pointer to the container CFrame (App in this case) and the last argument is the Border characters.
ReplyDeletestrange
ReplyDeletethis is our prototype:
CDialog(
int Row = -1, int Col = -1,
int Width = -1, int Height = -1,
bool Bordered = false,
const char* Border=C_BORDER_CHARS,
CFrame *Container = (CFrame*)0
);
container is the last parameter
grrr
ReplyDeletejust check the wiki again. It is changed ><