Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get gdiplus.chm Pin
zecodela17-Nov-03 14:45
zecodela17-Nov-03 14:45 
GeneralWindows Media CD Ripping Pin
benglish7217-Nov-03 13:52
benglish7217-Nov-03 13:52 
QuestionIs it possible to connect to a database using only the connect string? Pin
ElizabethC17-Nov-03 12:55
ElizabethC17-Nov-03 12:55 
AnswerRe: Is it possible to connect to a database using only the connect string? Pin
Brian Shifrin17-Nov-03 14:47
Brian Shifrin17-Nov-03 14:47 
GeneralHelp Pin
wendigo_8317-Nov-03 12:38
susswendigo_8317-Nov-03 12:38 
GeneralRe: Help Pin
Mike Danberg17-Nov-03 12:44
Mike Danberg17-Nov-03 12:44 
GeneralRe: Help Pin
Christian Graus17-Nov-03 15:20
protectorChristian Graus17-Nov-03 15:20 
GeneralRe: Help Pin
Mike Dimmick18-Nov-03 2:52
Mike Dimmick18-Nov-03 2:52 
The normal approach is to convert the dates into some numeric format, from which you can then perform the subtraction and convert back to days, weeks etc.

In Windows you would normally set up a SYSTEMTIME structure, convert it to a FILETIME with SystemTimeToFileTime, copy the two parts of FILETIME into a LARGE_INTEGER, then do 64-bit arithmetic on the QuadPart member. A FILETIME is in 100ns (0.1us, or 1 x 10 ^ -7 s) intervals.

If the code needs to be portable (e.g. to work on Unixes) you might prefer looking at the C standard library routines, the tm structure and the time_t numeric type.
GeneralHelp Pin
Anonymous17-Nov-03 12:37
Anonymous17-Nov-03 12:37 
GeneralRe: Help Pin
murali_utr17-Nov-03 17:29
murali_utr17-Nov-03 17:29 
GeneralEnabling/Disabling Menu Items Pin
mdurfee17-Nov-03 12:10
mdurfee17-Nov-03 12:10 
GeneralRe: Enabling/Disabling Menu Items Pin
Mike Danberg17-Nov-03 12:51
Mike Danberg17-Nov-03 12:51 
GeneralRe: Enabling/Disabling Menu Items Pin
Michael Dunn17-Nov-03 20:07
sitebuilderMichael Dunn17-Nov-03 20:07 
GeneralProgramming I/O for usb devices Pin
haritadala17-Nov-03 11:35
haritadala17-Nov-03 11:35 
GeneralRe: Programming I/O for usb devices Pin
Peter Molnar18-Nov-03 15:10
Peter Molnar18-Nov-03 15:10 
GeneralPlease help to create thumbnails Pin
ElizabethC17-Nov-03 11:32
ElizabethC17-Nov-03 11:32 
GeneralRe: Please help to create thumbnails Pin
Michael Gunlock17-Nov-03 18:24
Michael Gunlock17-Nov-03 18:24 
GeneralRe: Please help to create thumbnails Pin
Big Art18-Nov-03 13:44
Big Art18-Nov-03 13:44 
GeneralCDialogBar message handling Pin
alex.barylski17-Nov-03 11:08
alex.barylski17-Nov-03 11:08 
GeneralRe: CDialogBar message handling Pin
Peter Molnar18-Nov-03 14:59
Peter Molnar18-Nov-03 14:59 
Generalupside down Bitmap image Pin
Member 47752417-Nov-03 10:16
Member 47752417-Nov-03 10:16 
GeneralRe: upside down Bitmap image Pin
Brian Shifrin17-Nov-03 15:16
Brian Shifrin17-Nov-03 15:16 
GeneralRe: upside down Bitmap image Pin
Dudi Avramov18-Nov-03 3:10
Dudi Avramov18-Nov-03 3:10 
GeneralOutlook Express extensions Pin
Bartosz Bien17-Nov-03 9:39
Bartosz Bien17-Nov-03 9:39 
QuestionHow to watch static variables while debugging Pin
Hashim Saleem17-Nov-03 9:04
Hashim Saleem17-Nov-03 9:04 

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.