
Masking Input with Asterisks
Quote:
> I had understood that Heath wanted to simulate a password login with
> asterisks...
Read:
Quote:
> > Does anyone have an snippets of code or links to how-to's so I can see
> > how to mask input through a standard iostream to hide passwords?
Through a standard iostream, not in an edit control.
Sorry, original poster, I don't have a pre-canned solution. You need more
direct control than iostreams offer, I believe, because they're line
buffered, but my experience with iostreams is minimal. Check around in the
docs and see if you can turn on character-by-character mode, rather than
line-by-line mode, and then see if you can turn the auto-echo off.
I have my doubts. :-) NET.EXE is a console-based application, and likely
directly uses the Win32 console APIs.
Best regards,
Brad
--
Brad Wilson, Objectivist philosopher in training (http://www.aynrand.org/)
Try my CD player for Windows 95/98/NT/2K (http://www.quality.nu/cdplayer/)
"I can learn to compromise anything but my desires...
I can learn to persist with anything but aiming low...
I can close my eyes to anything but injustice..."
- Rush, "Resist", Test for Echo