Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCOleControl? Pin
raghuji.rao8-Jun-06 23:45
raghuji.rao8-Jun-06 23:45 
QuestionHow do I open file excel in VC++. Pin
Vu Ngoc Quyen8-Jun-06 23:35
Vu Ngoc Quyen8-Jun-06 23:35 
AnswerRe: How do I open file excel in VC++. Pin
raghuji.rao8-Jun-06 23:42
raghuji.rao8-Jun-06 23:42 
GeneralRe: How do I open file excel in VC++. Pin
XalanXalan9-Jun-06 1:30
XalanXalan9-Jun-06 1:30 
GeneralRe: How do I open file excel in VC++. Pin
raghuji.rao9-Jun-06 22:18
raghuji.rao9-Jun-06 22:18 
QuestionRe: How do I open file excel in VC++. Pin
David Crow9-Jun-06 3:39
David Crow9-Jun-06 3:39 
AnswerRe: How do I open file excel in VC++. Pin
ThatsAlok11-Jun-06 22:04
ThatsAlok11-Jun-06 22:04 
QuestionLogin program problem Pin
yogendra kaushik8-Jun-06 23:22
yogendra kaushik8-Jun-06 23:22 
AnswerRe: Login program problem [modified] Pin
_AnsHUMAN_ 8-Jun-06 23:28
_AnsHUMAN_ 8-Jun-06 23:28 
GeneralRe: Login program problem [modified] Pin
yogendra kaushik8-Jun-06 23:38
yogendra kaushik8-Jun-06 23:38 
QuestionImprove Performance of CRecordset Pin
Leonard8-Jun-06 23:07
Leonard8-Jun-06 23:07 
QuestionKeyboard focus to ActiveX control Pin
Andrew Hoole8-Jun-06 23:02
Andrew Hoole8-Jun-06 23:02 
AnswerRe: Keyboard focus to ActiveX control Pin
Stephen Hewitt8-Jun-06 23:17
Stephen Hewitt8-Jun-06 23:17 
GeneralRe: Keyboard focus to ActiveX control Pin
Andrew Hoole9-Jun-06 0:45
Andrew Hoole9-Jun-06 0:45 
QuestionRe: Keyboard focus to ActiveX control Pin
Viorel.8-Jun-06 23:33
Viorel.8-Jun-06 23:33 
AnswerRe: Keyboard focus to ActiveX control Pin
Andrew Hoole9-Jun-06 0:48
Andrew Hoole9-Jun-06 0:48 
AnswerRe: Keyboard focus to ActiveX control Pin
Andrew Hoole9-Jun-06 0:43
Andrew Hoole9-Jun-06 0:43 
Questiondate fetch problem Pin
yogendra kaushik8-Jun-06 22:59
yogendra kaushik8-Jun-06 22:59 
AnswerRe: date fetch problem Pin
Cedric Moonen8-Jun-06 23:02
Cedric Moonen8-Jun-06 23:02 
GeneralRe: date fetch problem Pin
yogendra kaushik8-Jun-06 23:14
yogendra kaushik8-Jun-06 23:14 
AnswerRe: date fetch problem Pin
_AnsHUMAN_ 8-Jun-06 23:05
_AnsHUMAN_ 8-Jun-06 23:05 
AnswerRe: date fetch problem Pin
yogendra kaushik8-Jun-06 23:24
yogendra kaushik8-Jun-06 23:24 
AnswerRe: date fetch problem Pin
Laxman Auti9-Jun-06 0:04
Laxman Auti9-Jun-06 0:04 
yogendra kaushik wrote:
i want to fetch date from mysql table into mfc dialog box date time picker control
wat problem is that date stored in mysql in format yyyy-mm-dd
and mfc store in the format dd-mm-yyyy
so it does not fetch the date only
can u tel me the code how to fetch date from mysql format yyyy-mm-dd
into mfc format dd-mm-yyyy


Here is the code ... which converts the date extracted from the mysql and put it into DTPicker control.
CString strTestDate("2006-05-05");
SYSTEMTIME currTime;
GetSystemTime(&currTime);
sscanf(strTestDate.GetBuffer(0),"%u-%u-%u",&currTime.wYear,&currTime.wMonth,&currTime.wDay); 
strTestDate.ReleaseBuffer();
m_DateTime=CTime(currTime);;
UpdateData(0);
Where strTestDate is fetched date from mysql. and m_DateTime is the control variable of the DTPicker control of type CTime.

here GetSystemTime is required to get the correct format result of the date picked from the mysql table.

Hope you are looking for same.


Knock out 't' from can't,
You can if you think you can
Cool | :cool:
Questionneed help in subclass a non MFC control Pin
Haitham Khedre8-Jun-06 22:35
Haitham Khedre8-Jun-06 22:35 
QuestionHow can I append LPTSTR to CStirng Pin
NoName II8-Jun-06 22:22
NoName II8-Jun-06 22:22 

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.