Home > Software engineering >  Opengl program based on the MFC to write good, how can I add a login screen? Grateful to
Opengl program based on the MFC to write good, how can I add a login screen? Grateful to

Time:10-10

Opengl based on MFC application ready, how can I make a login screen? To enter a login password, only after verification results demonstrate, grateful!!!!!!!!!!

CodePudding user response:

The menu bar?

CodePudding user response:

CnewDlg DLG.
DLG. DoModal ();
Insert a dialog resource in resources, and to add a base class for CDialog class, add a global Boolean variable, initialized to false, determine whether already logged in, if not, use mode dialog box, pop up a login dialog box, click the button in the event of adding judge whether the input account and password match, if not match, returns, if match, the Boolean variable is true, and exit the current login dialog box,

CodePudding user response:

The open source era is now!
Advise the landlord don't spend and waste your limited life infinite encryption to decrypt dead loop!

CodePudding user response:

Create a dialog,

CodePudding user response:

refer to the second floor lishunihaoa response:
CnewDlg DLG.
DLG. DoModal ();
Insert a dialog resource in resources, and to add a base class for CDialog class, add a global Boolean variable, initialized to false, determine whether already logged in, if not, use mode dialog box, pop up a login dialog box, click the button in the event of adding judge whether the input account and password match, if not match, returns, if match, the Boolean variable is true, and exit the current login dialog box,
, can again a little bit thin, a little fuzzy

CodePudding user response:

Is Mr As a modal dialog box, with your login name and password, if verification is correct, exit into the program, incorrect exit end program or to the processing,
  • Related