Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a password, dialog based, Win32 program. Please help me!!!!!!

Status
Not open for further replies.

TheProgramer

Programmer
Apr 10, 2004
25
0
0
US
Hi,
I am making a dialog based, Win32 application. I have set it up to have a person input a password, but it won't validate it. How do I make it validate the password? I want it to be able to have multiple passwords. I tried:
Code:
if (password == 1111) return 0;
so that if the password is correct, it will close the window, but my compiler gave me errors. how do I do this. Please Help.
Thanks in advance!!!!!!!!

--TheProgramer--
C++ Programer since 2004.
You can contact me at:
theprogramer2004@yahoo.com
 
That's C syntax. Are you doing this in VB? If so, try
[blue][tt]
Function ValidPassword (Password As String) As Boolean
ValidPassword = ( Password = "1111" )
End Function
[/tt][/blue]
 
I am very sorry, I thought I waas in the VC++ Forum. Oooooooooooooooooops. I should pay more attention.

--TheProgramer--
C++ Programer since 2004.
You can contact me at:
theprogramer2004@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top