How do I display user-entered text as asterisks? E.g. Password

This is a discussion on How do I display user-entered text as asterisks? E.g. Password within the Windows Programming forums, part of the Platform Specific Boards category; Hey all. It just occurred to me that I don't know how to echo text as asterisks. I'm sure there's ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    11

    Question How do I display user-entered text as asterisks? E.g. Password

    Hey all.

    It just occurred to me that I don't know how to echo text as asterisks. I'm sure there's some way of doing it

    Any suggestions?

    PS
    If you don't know what I mean, I mean when you put in a password and it comes up as asterisks. Thanks.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    set edit box style ES_PASSWORD. By default this uses an asterix but you can use a different char by supplying one to the SetPasswordChar() function.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 01:59 PM
  2. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 05:21 PM
  3. how to enter a password with asterisks
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 12-06-2001, 11:38 AM
  4. Replies: 0
    Last Post: 10-23-2001, 03:04 AM
  5. How to echo text as asterisks
    By n00b in forum C++ Programming
    Replies: 9
    Last Post: 09-02-2001, 09:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21