1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Help needed with visual c++, please!

Discussion in 'Software Development' started by mobarati, Jan 25, 2007.

Thread Status:
Not open for further replies.
  1. mobarati

    mobarati Thread Starter

    Mar 22, 2005
    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.

  2. CarpeDiem


    Dec 3, 2004
    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:

    Another means is by using the Resource Editor in Visual Studio and setting the field "Password" to TRUE.
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/538258

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice