|
|
Hi guys
I have a question: is it possible to mask the user input by using a pre-determined symbol?
Like when a password is being inputted, instead of the actual password, '*'s will appear to mask it. Is this possible in std c++ and if it is, how do I do it?
Thanks in advance!
Regards,
Peter
|
|
|
|
|
the output is UI/platform dependant, not standard C++.,
What exacly are you trying to acheive ? you want to do the same in a console application ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Yes, I wanted to achieve that in a console app.
I was afraid it wouldn't be possible, but I had to know for sure.
Thanks for confirming my hunch!
|
|
|
|
|
I am not sure there is such a feature in STL or C++ libraries.
Using Windows API, you can try at least to hide the input while the user enters the password. Investigate the SetConsoleMode function with ENABLE_ECHO_INPUT flag. Also you can try to read each character separately in a loop and print '*'s yourself.
|
|
|
|
|
How can I create Report ListController with thumbnail as subitem…
|
|
|
|
|
Hope this helps you:
Click Here[^]
Cheers
"Peace of mind through Technology"
|
|
|
|
|
how to use the variable of another property sheet in M.F.C?
how to do communicaion in between property sheet
prashant jain malviya national institute of technology
-- modified at 6:33 Monday 12th June, 2006
|
|
|
|
|
prashantjain wrote: how to use the variable of another property sheet in M.F.C?
how to do communicaion in between property sheet
see Help of CPropertyPage and CPropertySheet in MSDN, you will every thing there?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thnx for suggestion. but i want to use the variable of another property page of the same property sheet which is not explained there.
prashant jain malviya national institute of technology
|
|
|
|
|
prashantjain wrote: i want to use the variable of another property page of the same property sheet which is not explained there.
It required little logic to reach there, Call GetParent() to reterive Pointer to Parent Property sheet, then by calling CPropertySheet::GetPage to reterive the Pointer of Specfic Page whoes variable you want to access...
prashantjain wrote: malviya national institute of technology
Where it is?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanx for your sugesstion but if you can please send me a sample code taking any simple example please
prashant jain
|
|
|
|
|
prashantjain wrote: how to use the variable of another property sheet in M.F.C?
Does one property sheet own the other?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
no, i want to use the variable of another property page of the same property sheet
prashant jain malviya national institute of technology
|
|
|
|
|
prashantjain wrote: use the variable of another property page
Yet the subject says "use the variable of another property sheet."
If you are simply wanting one page to communicate with another, create a class/structure that is owned by the sheet. Load/store data in that.
There's no need for one page to communicate directly with another.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
I am able to make interface browser b/w vc++ using CHTMLView class inside my vc++ application.I am using this to open my own web site for downloading some files from server.tht is also working fine.problem is when i click on download, a window appears asking whether i should open or save the file.I dont want to give user this option.On click download it should directly save in some specific directory on local system.is it possible to do this????
if so pls reply how....pls
thanx
FutureSE
|
|
|
|
|
You can investigate how SetSilent member of the CHtmlView class affects the functionality.
|
|
|
|
|
ok thank u i ll look into that
FutureSE
WhiteHawk
|
|
|
|
|
hi
I have designed an activex control in vc++6.0.I wanna add maximize,minimize and close buttons in title bar.how to do that.
help me please.
Regards,
Sunita
|
|
|
|
|
As I know, the windows styles that are responsible for this are: WS_MAXIMIZEBOX , WS_MINIMIZEBOX and WS_SYSMENU .
|
|
|
|
|
thanks for ur reply.
But i need to add hover buttons in title bar.
I want to create my own buttons insted of WS_MAXIMIZEBOX, WS_MINIMIZEBOX.
How to create own title bar and buttons in activex control
Help me please.
Regards,
Sunita
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hi,
How do I use a static control to draw on a dialog ?
So far, I have created a static text control and added a member control variable to it of type CStatic.
Now, I am required to subclass the text control so that i can override its OnPaint() function but i do not know how to achieve that.
Any help will be highly appreciated.
llp00na
|
|
|
|
|
Maybe this article[^] will help. It is about subclassing a CButton but the procedure is the same (AFAIK) for a static control.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
thanx for the gr8 article
llp00na
|
|
|
|