Hi,
I'm trying to display the Login window and then when it closes the Chat window should be displayed. Instead only the Chat window will display. This happens outside of the Borland IDE. The compiler that I'm using is Borland C++ 5.5.
thank you
Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
int i;
WNDCLASS wc;
for(i = 0; i < 5; i++)
{
sprintf(users[i].username,"User %d",i+1);
strcpy(users[i].emailaddress,"");
}
DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(DIALOG_2),
NULL, (DLGPROC)LoginDialogProc, 0);
DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(DIALOG_1),
NULL, (DLGPROC)ChatDialogProc, 0);
return 0;
}