|
Hello,
while reading event Log records, I need to read generated time of Event Log.
If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only.
Use of COleDateTime is not possible.
Please suggest if there is any solution for this.
Abhijeet
|
|
|
|
|
CTime used to be limited as you mentioned - 2038, however (at least with VS2005) that has been modified and now allows dates from 1/1/1970 to 12/31/3000. See MSDN[^] for more info.
Sounds like you need to upgrade since you say you can't use COleDateTime.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Abhijeet Rajput wrote: Use of COleDateTime is not possible.
Why not?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Why you cant use of COleDate?
|
|
|
|
|
can anyone tell how to do job scheduling in vc++
|
|
|
|
|
WTF have you tried so far to achieve this ?
|
|
|
|
|
See
ITask
IScheduledWorkItem
ITaskScheduler
and related interfaces
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
can anybody tell me how to connect ms access with mfc dialog in vc++
thanks in advance.
|
|
|
|
|
what have you tried so far to achieve this ?
|
|
|
|
|
an usual way is to do this via a ODBC connection. Prepare in Access some stored procedures to fetch the needed data.
Learn to use the "Search" Box!!!
Greetings from Germany
|
|
|
|
|
KarstenK wrote: an usual way is to do this via a ODBC connection. Prepare in Access some stored procedures to fetch the needed data.
Learn to use the "Search" Box!!!
are you sure you wanted to say all these to ME ?
|
|
|
|
|
There are so many articles published in CP regarding database connectivity. Gothrough them.
cheers,
Sreedhar DV
[Real success is having courage to meet failure without being defeated.]
|
|
|
|
|
See if this article is of any help.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all
i want to open a PDF file when i click on help button so how can i open(run) it.
Thanks in advance
RYK
|
|
|
|
|
what have you tried so far to achieve this ?
|
|
|
|
|
Did u try opening it with ADOBE READER?
|
|
|
|
|
ShellExecute will start a file for you, by opening the default program.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
use system function in your button
|
|
|
|
|
system() ? definitely not.
|
|
|
|
|
I need to simulate FTP using socket programming in vc++(MFC) between two threads.......... Can anyone HELP.....?
|
|
|
|
|
Hi,
I trust that this[^] will help you... and have a look at this[^] as well
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Thank you... I hope it helps....
|
|
|
|
|
Hi all,
I'm trying to retrieve the event ID of a specific event. Currently I'm using the following code:
...
AnsiString msg;
msg = msg.sprintf("Event ID: 0x%08X ",pevlr->EventID);
...
This is the output:
Event ID: 0x20000001
The Event ID in the event viewer is 1, so ..... how to get the correct format ??
From 0x20000001 to 1
Many Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: The Event ID in the event viewer is 1, so ..... how to get the correct format ??
From 0x20000001 to 1
Maybe just look at the lower 16 bits.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|