Link to home
Start Free TrialLog in
Avatar of gopalanravi
gopalanravi

asked on

password help!

I am a beginner in Visual C++. I need some help urgently. I have two edit boxes in a dialog box. Also there is an OK and CAncel button. In one I am supposed to enter a password and in the other I need to confirm the password(that is I type that password once again). If the two passwords match on pressing the OK button then it is fine, else I need a message box which pops up saying that the passwords entered are not same and that we need to check the two passwords once again. Also, if any of the two boxes are blank we need a message box to say that password needs to be entered. On pressing the Cancel button I should be back in the same window with the fields for password and password confirmation cleared. Could someone please help me with writing this code please.


Could someone help me out on this fast please!
Avatar of ScottyDawg
ScottyDawg

As a starter, you can set a style on the edit box to be Password (so every character typed is shown as a star).

Secondly, you should call GetWindowText(...) on either edit box to see what has been typed.

And finally, we don't do homework.
ASKER CERTIFIED SOLUTION
Avatar of mahno
mahno

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well at least I thought we didn't do homework!
Sorry, ScottyDawg :(
Next time I'll allow for you words

mahno
Does this sound like homework?  Most introductory courses don't cover windows programming.