int VACA_MAIN() { Application app; MainFrame dlg; if (dlg.doModal()) MsgBox::show(&dlg, L"Information", L"Welcome '" + dlg.getUserName() + L"'", MsgBox::Type::Ok, MsgBox::Icon::Information); else MsgBox::show(&dlg, L"Information", L"You canceled the operation", MsgBox::Type::Ok, MsgBox::Icon::Information); return 0; }