Click here to Skip to main content
15,914,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC error but not in gcc. Pin
Michael Dunn5-Dec-03 17:39
sitebuilderMichael Dunn5-Dec-03 17:39 
GeneralError: Exception Breakpoint Pin
haritadala5-Dec-03 10:07
haritadala5-Dec-03 10:07 
Generalcommand-line arguments in VS7 Pin
karunswaroop5-Dec-03 8:27
karunswaroop5-Dec-03 8:27 
GeneralRe: command-line arguments in VS7 Pin
Michael P Butler5-Dec-03 8:42
Michael P Butler5-Dec-03 8:42 
GeneralRe: command-line arguments in VS7 Pin
karunswaroop5-Dec-03 9:33
karunswaroop5-Dec-03 9:33 
GeneralPrinting 2 Pages Per Sheet Pin
K. Shaffer5-Dec-03 7:58
K. Shaffer5-Dec-03 7:58 
GeneralRe: Printing 2 Pages Per Sheet Pin
Steve S9-Dec-03 0:59
Steve S9-Dec-03 0:59 
QuestionFILETIME? DosDateTimeToFileTime() ? Pin
Amit Dey5-Dec-03 7:48
Amit Dey5-Dec-03 7:48 
How do I create a new FILETIME for given date and time?

<br />
// pszDateTime like 12/3/2003 19:32<br />
	int day,month,year,hour,min = 0;<br />
	sscanf(pszDateTime,"%d/%d/%d %d:%d",&day,&month,&year,&hour,&min);<br />
	DOSTIME time;<br />
	DOSDATE date;<br />
<br />
	date.day = day;<br />
	date.month = month;<br />
	date.year = year - 1980;<br />
<br />
	time.hour = hour;<br />
	time.min = min;<br />
	time.sec = 0;<br />
<br />
	FILETIME fTime;<br />
          if(DosDateTimeToFileTime(*(WORD*)&date,*(WORD*)&time,&fTime)==0)<br />
         return -1;<br />
<br />


Problem is DosDateTimeToFileTime() always fails. I want a FILETIME that I could compare with using CompareFileTime().

TIA.
Smile | :)



Hush,hush...
thought I heard you call my name now.

Kula Shaker.

Amit Dey

Latest articles at CP -
Writing Word addins
Office addin


AnswerRe: FILETIME? DosDateTimeToFileTime() ? Pin
Michael Dunn5-Dec-03 17:46
sitebuilderMichael Dunn5-Dec-03 17:46 
GeneralRe: FILETIME? DosDateTimeToFileTime() ? Pin
Amit Dey5-Dec-03 22:06
Amit Dey5-Dec-03 22:06 
GeneralRe: FILETIME? DosDateTimeToFileTime() ? Pin
Michael Dunn6-Dec-03 0:33
sitebuilderMichael Dunn6-Dec-03 0:33 
GeneralTutorial Recommendations Pin
Roger Wright5-Dec-03 7:03
professionalRoger Wright5-Dec-03 7:03 
GeneralRe: Tutorial Recommendations Pin
Michael P Butler5-Dec-03 8:44
Michael P Butler5-Dec-03 8:44 
GeneralRe: Tutorial Recommendations Pin
Roger Wright5-Dec-03 9:03
professionalRoger Wright5-Dec-03 9:03 
GeneralRe: Tutorial Recommendations Pin
Michael P Butler5-Dec-03 9:15
Michael P Butler5-Dec-03 9:15 
GeneralRe: Tutorial Recommendations Pin
Roger Wright5-Dec-03 10:12
professionalRoger Wright5-Dec-03 10:12 
GeneralRe: Tutorial Recommendations Pin
Jörgen Sigvardsson5-Dec-03 14:04
Jörgen Sigvardsson5-Dec-03 14:04 
Questionwait methods!!!? Pin
mitil203904823045-Dec-03 6:55
mitil203904823045-Dec-03 6:55 
AnswerRe: wait methods!!!? Pin
Joe Woodbury5-Dec-03 20:51
professionalJoe Woodbury5-Dec-03 20:51 
GeneralFunction Question Pin
Nitron5-Dec-03 6:36
Nitron5-Dec-03 6:36 
GeneralRe: Function Question Pin
Ivor S. Sargoytchev5-Dec-03 9:01
Ivor S. Sargoytchev5-Dec-03 9:01 
GeneralStartbar Message Monitoring Pin
Zero_divide_15-Dec-03 6:15
Zero_divide_15-Dec-03 6:15 
QuestionDynamic compact/extended toolbar? Pin
johannks5-Dec-03 5:09
johannks5-Dec-03 5:09 
AnswerRe: Dynamic compact/extended toolbar? Pin
Roger Allen5-Dec-03 5:16
Roger Allen5-Dec-03 5:16 
AnswerRe: Dynamic compact/extended toolbar? Pin
Roger Allen5-Dec-03 5:21
Roger Allen5-Dec-03 5:21 

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.