Thread: I know, I know...(passwords[****])

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    I know, I know...(passwords[****])

    I know this has been covered before, but can anyone tell me the setting for converting the users non-echoed typing into the *** password format?

    Thx
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Question

    Is this in a win32 based program? I will assume it is as this is on the windows board. And i will also assume that you are getting text from an edit control?

    If this is the case, then you dont need any code, you just have to add a property to your edit control, ES_PASSWORD.

    That goes in your CreateWindow/CreateWindowEx function where you have WS_CHILD property, or should do.

    If you are using dialogs then simply go to the properties of the edit control and tick password.

    >>I know this has been covered before
    You should do a search on the board, i saw this on the dos board a while ago.
    Again if this isnt what you wanted or you wanted to create input from a console program then you should ask on the dos board.

    Hope thats of some help...
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

Popular pages Recent additions subscribe to a feed