Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: create DSN at runtime Pin
David Crow3-Jul-07 2:08
David Crow3-Jul-07 2:08 
GeneralRe: create DSN at runtime Pin
meenakhisjoshi3-Jul-07 23:33
meenakhisjoshi3-Jul-07 23:33 
QuestionRe: create DSN at runtime Pin
David Crow4-Jul-07 11:42
David Crow4-Jul-07 11:42 
GeneralRe: create DSN at runtime Pin
MANISH RASTOGI2-Jul-07 19:03
MANISH RASTOGI2-Jul-07 19:03 
QuestionDATEDIFF function Pin
El'Cachubrey2-Jul-07 1:08
El'Cachubrey2-Jul-07 1:08 
AnswerRe: DATEDIFF function Pin
CPallini2-Jul-07 1:44
mveCPallini2-Jul-07 1:44 
AnswerRe: DATEDIFF function Pin
benjymous2-Jul-07 1:59
benjymous2-Jul-07 1:59 
AnswerRe: DATEDIFF function Pin
vladfein2-Jul-07 9:20
vladfein2-Jul-07 9:20 
Unfortunately, none of the two suggestion above will do what DATEDIFF does...
You need to separate the DATE part of your time value. You didn't say what data type you use for your date/time variables.
The easiest way, I think, is to convert both dates to COleDateTime (which wraps double representation of date/time), truncate the fractional part and simply subtract one value from another.

-----------------------------
Get trial copy of FeinViewer - an integrated GDI objects viewer for Microsoft Visual Studio .NET 2005 (8.0) Visual C++ Debugger, and other convenience and productivity tools for Microsoft Visual Studio .NET at at www.FeinSoftware.com

QuestionDynamic Structures Pin
Programm3r2-Jul-07 0:32
Programm3r2-Jul-07 0:32 
AnswerRe: Dynamic Structures Pin
baerten2-Jul-07 0:45
baerten2-Jul-07 0:45 
QuestionRe: Dynamic Structures Pin
CPallini2-Jul-07 1:04
mveCPallini2-Jul-07 1:04 
QuestionRe: Dynamic Structures Pin
Programm3r2-Jul-07 2:29
Programm3r2-Jul-07 2:29 
AnswerRe: Dynamic Structures Pin
CPallini2-Jul-07 2:47
mveCPallini2-Jul-07 2:47 
GeneralRe: Dynamic Structures Pin
Programm3r2-Jul-07 2:59
Programm3r2-Jul-07 2:59 
AnswerRe: Dynamic Structures Pin
Eytukan2-Jul-07 6:15
Eytukan2-Jul-07 6:15 
QuestionDialog inside view? Pin
adityarao312-Jul-07 0:22
adityarao312-Jul-07 0:22 
QuestionHtmlHelp function problem [modified] Pin
camalia2-Jul-07 0:16
camalia2-Jul-07 0:16 
AnswerRe: HtmlHelp function problem Pin
Iain Clarke, Warrior Programmer2-Jul-07 2:47
Iain Clarke, Warrior Programmer2-Jul-07 2:47 
GeneralRe: HtmlHelp function problem Pin
camalia2-Jul-07 3:04
camalia2-Jul-07 3:04 
QuestionConvert string^ to numeric Pin
mikobi2-Jul-07 0:06
mikobi2-Jul-07 0:06 
AnswerRe: Convert string^ to numeric Pin
aatul2-Jul-07 0:08
aatul2-Jul-07 0:08 
AnswerRe: Convert string^ to numeric Pin
MANISH RASTOGI2-Jul-07 0:40
MANISH RASTOGI2-Jul-07 0:40 
GeneralRe: Convert string^ to numeric Pin
mikobi2-Jul-07 2:10
mikobi2-Jul-07 2:10 
GeneralRe: Convert string^ to numeric Pin
mikobi2-Jul-07 2:12
mikobi2-Jul-07 2:12 
AnswerRe: Convert string^ to numeric Pin
Hamid_RT2-Jul-07 1:25
Hamid_RT2-Jul-07 1:25 

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.