|
w14243 wrote: I wrote a VC6 program, and wanted to save user input password into the program body.
Why? That's no more secure than storing it in a flat text file. Why not encrypt it and store that in a separate file, far more secure.
A simple set of classes to encrypt data [^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Dear All.,
I am new to VC++. I dont know the difference between value variable and control variable.
Can Anybody answer the difference between these two ?
Thanks in advance...
|
|
|
|
|
Control variable: A CWnd-derived class (such as CEdit) is attached to the control so you can use the variable to do things like send messages to the control.
Value variable: A variable of the type you choose (such as CString ) is hooked up so it reflects the contents of the control. You can read or write this value from/to the control by passing the appropriate value to UpdateData()
|
|
|
|
|
|
|
Is that link supposed to be helpful? Did you read M. Dunn's response?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i want some idea about c++ & help me
mohansiva
|
|
|
|
|
|
mohansiva wrote: i want some idea about c++ & help me
could you eloborate on this topics!
"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
|
|
|
|
|
C++ was designed and implemented by Bjarne Stroustrup. Excel, on the other hand, is a Microsoft spreadsheet product.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm completely lost, i have to take my c++ programming class for my computer programming technology. But i'm completely lost on how to do it.
Please help me with the code, i would appreciate it so much.
4. Write a program to calculate the property tax. Property tax is calculated on 92% of the assessed value of the property. For example, if the assessed value is $200,000, the property tax is on $184,000. Assume that the property tax rate is $1.05 for each $100 of the assessed value. Your program should prompt the user to enter the assessed value of the property. Store the output in a file in the following format. (Here is a sample output.)
Assessed Value: 200000.00
Taxable Amount: 184000.00
Tax Rate for each $100.00: 1.05
Property Tax: 1932.00
Format your output to have two decimal places. (Note that the left column is left-justified and the right column is right-justified.)
|
|
|
|
|
I think you should try to code it first and ask for help if your program doesn't work accordingly or has bug...
You should first find out
how to prompt -- cout and cin
how to write to a file -- ofstream ofile( "FILENAME", ios::out );
Good luck!
|
|
|
|
|
taterbug20 wrote: Format your output to have two decimal places. (Note that the left column is left-justified and the right column is right-justified.)
might be i sounding like you Lecturer.. but have you tried something dude?
"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
|
|
|
|
|
I am writing a VC++ application. I want my exe should run in the machine only if a windows service is already installed in the machine. How to detect whether the service is installed?
|
|
|
|
|
|
I have an application that is loaded at startup. I don't want it to do certain things if nobody logs in, or if somebody logs in using Remote Desktop. Is there an API to check if the computer is locked? I know about ISensLogon::DisplayLock, but that seems to be event based. I don't need event notification though. I just need something simple like this
if (! IsComputerLocked() )
{
// do something
}
|
|
|
|
|
I Suppose that you could start searching for the GINA.DLL.
This dll controls all the log in process.
Hope this helps.
|
|
|
|
|
|
I have a friend of mine which has written a fullscreen app which act as a menu for its kids.
Now he would like to be able to run it fullscreen and take over the WINDOWS, WINDOWS+E, WINDOWS+M, ALT-TAB keys when the session start. Or something like that.
What would be the best way to achieve that?
|
|
|
|
|
The easiest part is the full screen: you could use this line in the last line of the OnInitDialog handler:
this->ShowWindow(SW_SHOWMAXIMIZED);
The other part is a little bit harder, you should create a "system wide hook" (there are good articles here in the codeproject about that). In order to do that you'll need to create a DLL with the hook.
With that hook you'll be able to control all the keystrokes except CTRL+ALT+DELETE that is controlled in a different process. If you want to control that you should create a GINA.DLL or download one that would allow this to you.
Hope this helps.
|
|
|
|
|
Thanks!
I was also wondering if there was a more generic way.
Instead of me catching a given list of arbitrary key combination, perhaps there is a way to simply disable all of these?
or at least somewhere in the registry where to find these shortcut?
|
|
|
|
|
I've googled for it and it seems that in Delphi you could do it using SystemParametersInfo
procedure TForm1.Button1Click(Sender: TObject);
var
Nada : integer;
begin
Nada:=0;
{DesHabilitar ALT-TAB}
{Disable ALT-TAB}
SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @Nada, 0);
end;
Hope this helps...
I would go for the service with the low level keyboard hook, it works for sure...
|
|
|
|
|
Nice! Thanks!
|
|
|
|
|
Hi All,
How can I subclass the Tooltip control in a list ctrol?
I've read the article on per subitem tooptips.
I just can't seem to figure how to get a handle to the actual tooltip to enable it to show balloons.
Any comment or a link would be welcome.
Thanks
P1p3r
|
|
|
|
|
Send the list a LVM_GETTOOLTIPS message to get the HWND of the tooltip control. Once you have that, you can subclass it like any other window.
|
|
|
|