Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreateProcess Pin
7-Nov-01 12:27
suss7-Nov-01 12:27 
GeneralRe: CreateProcess Pin
Masaaki Onishi7-Nov-01 15:59
Masaaki Onishi7-Nov-01 15:59 
GeneralPassword Edit & XP Pin
7-Nov-01 12:17
suss7-Nov-01 12:17 
GeneralRe: Password Edit & XP Pin
Masaaki Onishi7-Nov-01 16:08
Masaaki Onishi7-Nov-01 16:08 
GeneralEntering a password in the Command Prompt Pin
Alvaro Mendez7-Nov-01 11:50
Alvaro Mendez7-Nov-01 11:50 
GeneralRe: Entering a password in the Command Prompt Pin
Chris Losinger7-Nov-01 12:02
professionalChris Losinger7-Nov-01 12:02 
GeneralRe: Entering a password in the Command Prompt Pin
Alvaro Mendez7-Nov-01 12:17
Alvaro Mendez7-Nov-01 12:17 
GeneralRe: Entering a password in the Command Prompt Pin
Nish Nishant7-Nov-01 13:57
sitebuilderNish Nishant7-Nov-01 13:57 
Alvaro

In windows you can do this :-

while((c=_getch())!='\n')
{
      printf("*");
      s[i++]=c;
}
s[i]='\0';


For Linux/Unix you'll need to write your own _getch() function.

You can do this with not too much difficulty

(1)First open /dev/tty
(2)use ioctl to change keyboard device parameters [there is some flag to prevent echoing]
(3)Then read one character
(4)use ioctl to set echo back
(5)Now close /dev/tty

I am sorry I couldnt actually put the code here, but if you have access to a unix box you can lookup ioctl and /dev/tty in the man pages and figure out a way.

Regards
Nish

Sonork ID 100.9786 voidmain
GeneralRe: Entering a password in the Command Prompt Pin
Michael P Butler7-Nov-01 22:01
Michael P Butler7-Nov-01 22:01 
GeneralRe: Entering a password in the Command Prompt Pin
Nish Nishant7-Nov-01 22:23
sitebuilderNish Nishant7-Nov-01 22:23 
GeneralRe: Entering a password in the Command Prompt Pin
Alvaro Mendez8-Nov-01 5:28
Alvaro Mendez8-Nov-01 5:28 
GeneralRe: Entering a password in the Command Prompt Pin
Alvaro Mendez8-Nov-01 6:16
Alvaro Mendez8-Nov-01 6:16 
GeneralRe: Entering a password in the Command Prompt Pin
Joaquín M López Muñoz7-Nov-01 12:20
Joaquín M López Muñoz7-Nov-01 12:20 
QuestionLoops and MFC? Pin
7-Nov-01 11:16
suss7-Nov-01 11:16 
AnswerRe: Loops and MFC? Pin
Stan Shannon7-Nov-01 11:24
Stan Shannon7-Nov-01 11:24 
GeneralRe: Loops and MFC? Pin
7-Nov-01 11:31
suss7-Nov-01 11:31 
GeneralRe: Loops and MFC? Pin
7-Nov-01 11:38
suss7-Nov-01 11:38 
GeneralRe: Loops and MFC? Pin
Alvaro Mendez7-Nov-01 11:59
Alvaro Mendez7-Nov-01 11:59 
GeneralRe: Loops and MFC? Pin
7-Nov-01 14:30
suss7-Nov-01 14:30 
GeneralRe: Loops and MFC? Pin
Michael Dunn7-Nov-01 15:25
sitebuilderMichael Dunn7-Nov-01 15:25 
Question2 problems. Any takers? Pin
ParaSwarm7-Nov-01 11:10
ParaSwarm7-Nov-01 11:10 
AnswerRe: 2 problems. Any takers? Pin
Joaquín M López Muñoz7-Nov-01 11:30
Joaquín M López Muñoz7-Nov-01 11:30 
AnswerRe: 2 problems. Any takers? Pin
Anders Molin7-Nov-01 12:00
professionalAnders Molin7-Nov-01 12:00 
AnswerRe: 2 problems. Any takers? Pin
Alvaro Mendez7-Nov-01 12:25
Alvaro Mendez7-Nov-01 12:25 
GeneralDialog box application Pin
7-Nov-01 9:51
suss7-Nov-01 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.