For help, school work, a student management system, I written in vc + + 6.0 graphical user interface, the login interface is already written, would like to know how to jump when the input password correctly the main interface, also can flow under the graphical user interface implementation file input and output,
CodePudding user response:
The main window interface before adding a CDialog dialog box, used to input the user name/password ~
CodePudding user response:
The main window implementation file stream input/output to do
CodePudding user response:
reference 1/f, 7-eleven's response: main window interface before adding a CDialog dialog box, used to input the user name/password ~ The main window implementation file stream input/output to do CodePudding user response:
Can use the basic file management, also can see MFC Serialization Serialization: Serializing an Object CodePudding user response:
If (password) right OnOK (); The else AfxMessageBox (" password error "); CodePudding user response:
Have a few questions first of all, I want to in the child window enter the student id, and then compare the parent window in the list of student number, then output the child window how then there is the data output by pressing the button in the list to the original written TXT file how to write in urgent please just made thank you for the day after tomorrow CodePudding user response:
BOOL CxxxxApp: : InitInstance () { .//create the code window If (CLonginDlg Domodal ()==IDOK) { //to create the main window, this code will create a new frame window //object, and then set it to the application's main window object CMDIFrameWnd * pFrame=new CMainFrame; if (! PFrame) return FALSE; M_pMainWnd=pFrame; //create a main MDI frame window if (! PFrame - & gt; LoadFrame (IDR_MAINFRAME)) return FALSE; //try to load sharing MDI menu and shortcuts list //TODO: add additional member variable, and loads of //application may require additional menu type of call HINSTANCE hInst=AfxGetResourceHandle (); M_hMDIMenu=: : LoadMenu (hInst, MAKEINTRESOURCE (IDR_UsingZbarCode4TYPE)); M_hMDIAccel=: : LoadAccelerators (hInst, MAKEINTRESOURCE (IDR_UsingZbarCode4TYPE)); //the main window has been initialized, so show and update it PFrame - & gt; ShowWindow (m_nCmdShow); PFrame - & gt; UpdateWindow (); Return TRUE; } The else return FALSE; }