Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdding controls dynamically to a dialog Pin
Budric B.6-Apr-05 11:11
Budric B.6-Apr-05 11:11 
GeneralRe: Adding controls dynamically to a dialog Pin
PJ Arends6-Apr-05 13:11
professionalPJ Arends6-Apr-05 13:11 
GeneralGUI Builder for VC++ 6 Pin
xanacrows6-Apr-05 10:57
xanacrows6-Apr-05 10:57 
GeneralUsing Callbacks in class Pin
Identity Undisclosed6-Apr-05 9:53
Identity Undisclosed6-Apr-05 9:53 
GeneralRe: Using Callbacks in class Pin
Roger Allen6-Apr-05 13:01
Roger Allen6-Apr-05 13:01 
GeneralRe: Using Callbacks in class Pin
PJ Arends6-Apr-05 13:14
professionalPJ Arends6-Apr-05 13:14 
GeneralRe: Using Callbacks in class Pin
David Crow7-Apr-05 2:56
David Crow7-Apr-05 2:56 
GeneralChanging file time... Pin
dandy726-Apr-05 9:17
dandy726-Apr-05 9:17 
Hi all,

I have a customer reporting a crash in one of my apps. The crash address leads me to believe my program is passing an invalid value to FileTimeToSystemTime() (in kernel32.dll). That should be easy enough for me to verify and fix (famous last words :-p), however I'd like to be able to reproduce the problem before putting blind faith into a fix I can't test on my own.

I'm suspecting he (the customer) has a file somewhere with an invalid date, and my app is retrieving that datestamp and blindly passing it along to FileTimeToSystemTime(). How can I force the creation of file with an "invalid" date? I tried creating a file, then calling SetFileTime() with "invalid" parameters--however it doesn't report any error (it returns TRUE) when I provide it three FILETIME structures that contain zeroes (NOT NULL pointers, which are valid), yet according to Explorer, the file's timestamps aren't changed at all.

I remember seeing files with timestamps of 1/1/1601 on an NTFS partition, and I'm suspecting this is the sort of thing my program is currently choking on.

Can anyone intentionally cause FileTimeToSystemTime() to crash (presumably, by providing it with invalid parameters)?
GeneralRe: Changing file time... Pin
David Crow7-Apr-05 3:00
David Crow7-Apr-05 3:00 
GeneralRe: Changing file time... Pin
dandy727-Apr-05 8:14
dandy727-Apr-05 8:14 
GeneralCEdit for UNICODE applications Pin
RShark6-Apr-05 8:55
RShark6-Apr-05 8:55 
GeneralRe: CEdit for UNICODE applications Pin
NewbieStats6-Apr-05 13:03
NewbieStats6-Apr-05 13:03 
GeneralRe: CEdit for UNICODE applications Pin
BadJerry7-Apr-05 1:35
BadJerry7-Apr-05 1:35 
GeneralPerformance counter. Pin
MDem6-Apr-05 8:25
MDem6-Apr-05 8:25 
GeneralRe: Performance counter. Pin
Roland Pibinger6-Apr-05 9:31
Roland Pibinger6-Apr-05 9:31 
GeneralRe: Performance counter. Pin
BadJerry7-Apr-05 1:42
BadJerry7-Apr-05 1:42 
Generalvisual dot net c++ problem please help Pin
monageasmear6-Apr-05 8:00
monageasmear6-Apr-05 8:00 
GeneralRe: visual dot net c++ problem please help Pin
Ali Rafiee6-Apr-05 8:59
Ali Rafiee6-Apr-05 8:59 
Generalprogress bar.. Pin
trigger916-Apr-05 7:59
susstrigger916-Apr-05 7:59 
GeneralRe: progress bar.. Pin
David Crow7-Apr-05 3:04
David Crow7-Apr-05 3:04 
Generalnetwork question Pin
madretierra6-Apr-05 7:20
madretierra6-Apr-05 7:20 
QuestionHow to Simulate a button pressing on external app? Pin
yaniv_av6-Apr-05 6:17
yaniv_av6-Apr-05 6:17 
AnswerRe: How to Simulate a button pressing on external app? Pin
Ravi Bhavnani6-Apr-05 6:52
professionalRavi Bhavnani6-Apr-05 6:52 
GeneralRe: How to Simulate a button pressing on external app? Pin
yaniv_av6-Apr-05 7:31
yaniv_av6-Apr-05 7:31 
AnswerRe: How to Simulate a button pressing on external app? Pin
Ali Rafiee6-Apr-05 8:55
Ali Rafiee6-Apr-05 8:55 

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.