Thanks. It works. But since it is a string, while modifying some other edit filed (number) and updatedata(TRUE), the error message "Please enter a number" is displayed. Please let me know a way to avaoid this error / catch this error message.
AfxTextFloatFormat is called by DDX_Text where this message is generated.
I can say another option. Add a member function same as UpdateData(BOOL bSaveAndValidate = TRUE). Remove DDX_Text entry in the DoDataExchange. Convert the window text to double in the new UpdateData if the BOOL bSaveAndValidate is TRUE (if it is NA you can check it also) and do vice versa if FALSE. Also call the CDialog::UpdateData(bSaveAndValidate) so that other control variables will not be affected.
I would like to know wheter there is any way (using code) in which I can get hold of the system log, in terms of, when Windows has finished downloading updates and needs to restart. See the reason I'm asking is because some of our computer are never used by users, but still need security updates, and in the light that after every update Windows needs a restart, there will be no user to do so. Any suggestion ??
The only programmers that are better that C programmers are those who code in 1's and 0's
Am I correct to say that I can locate the event log in the following directory:
Eventhough by default the file for "Application" events comes in the above mentioed path, it can be changed by changing the values in registy. Search the registry for value "C:\Windows\system32\config\AppEvent.Evt"
As a hack you could use sizeof(int*) (any type will do, not just int).
Or, sizeof(int) for 16/32.
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
Last Visit: 31-Dec-99 18:00 Last Update: 28-Jul-21 11:27