Sunday 23 October 2011

Problem with tester

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,);

3 comments:

  1. 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.

    ReplyDelete
  2. 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

    ReplyDelete
  3. grrr
    just check the wiki again. It is changed ><

    ReplyDelete