Help needed with visual c++, please!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

mobarati

Thread Starter
Joined
Mar 22, 2005
Messages
13
I need a piece of code that saves a customer's account number and password to a file. only that it automatically generates the account number. so the code looks into the file. reads the 5 digit account number for the last customer and adds one to it. then assigns the new number to the new customer. each record on the file is written on a seperate line.

plus if you have any kind of code that would take the password from the user but show stras '*' on the screen, and save the password, please forward it to me.

any help towards this is appriciated.

thanks
 
Joined
Dec 3, 2004
Messages
119
There are different methods of handling the password character depending on the type of control you are using on your window.

One method is using the EM_SETPASSWORDCHAR message. This message is easy to use and understand, it goes something like this:

SendDlgItemMessage(hWindow, PASSWORD_FIELD, EM_SETPASSWORDCHAR, (WPARAM) '*', 0L);
Another means is by using the Resource Editor in Visual Studio and setting the field "Password" to TRUE.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top