Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Enumerating through local drives Pin
Hamid_RT6-Jun-08 1:26
Hamid_RT6-Jun-08 1:26 
QuestionRichEditControl in Visual c++ 6 or in C Win 32 programming Pin
mamp5-Jun-08 6:32
mamp5-Jun-08 6:32 
AnswerRe: RichEditControl in Visual c++ 6 or in C Win 32 programming Pin
Nelek5-Jun-08 7:01
protectorNelek5-Jun-08 7:01 
QuestionHow can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 5:23
amistry_petlad5-Jun-08 5:23 
QuestionRe: How can I display current time in dialog static control Pin
David Crow5-Jun-08 5:32
David Crow5-Jun-08 5:32 
QuestionRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 6:38
amistry_petlad5-Jun-08 6:38 
AnswerRe: How can I display current time in dialog static control Pin
David Crow5-Jun-08 6:43
David Crow5-Jun-08 6:43 
GeneralRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 7:07
amistry_petlad5-Jun-08 7:07 
When I had simply used sprintf complier generated warning for sprintf AND give suggestion fo sprintf_s

i am using MSVS2008 ON VISTA

I have change the code following way it compile succesful but rund time break the application

<br />
 GetLocalTime(&time);<br />
  char str[256]; <br />
<br />
<br />
  sprintf_s(str,"02d%:02d%:02d%",time.wHour,time.wMinute,time.wSecond);<br />
 <br />
 std::string str1(str);<br />
 int len;<br />
 int slength = (int)str1.length() + 1;<br />
 len = MultiByteToWideChar(CP_ACP, 0, str1.c_str(), slength, 0, 0);<br />
 wchar_t* buf = new wchar_t[len];<br />
 MultiByteToWideChar(CP_ACP, 0, str1.c_str(), slength, buf, len);<br />
 SetDlgItemText(IDC_STATIC1,buf);<br />

GeneralRe: How can I display current time in dialog static control Pin
David Crow5-Jun-08 7:23
David Crow5-Jun-08 7:23 
GeneralRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 7:44
amistry_petlad5-Jun-08 7:44 
GeneralRe: How can I display current time in dialog static control Pin
David Crow5-Jun-08 7:56
David Crow5-Jun-08 7:56 
GeneralRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 9:25
amistry_petlad5-Jun-08 9:25 
GeneralRe: How can I display current time in dialog static control Pin
Jijo.Raj5-Jun-08 9:12
Jijo.Raj5-Jun-08 9:12 
GeneralRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 11:02
amistry_petlad5-Jun-08 11:02 
JokeRe: How can I display current time in dialog static control Pin
Jijo.Raj5-Jun-08 18:31
Jijo.Raj5-Jun-08 18:31 
GeneralRe: How can I display current time in dialog static control Pin
SandipG 5-Jun-08 23:40
SandipG 5-Jun-08 23:40 
QuestionRe: How can I display current time in dialog static control Pin
Maximilien5-Jun-08 7:45
Maximilien5-Jun-08 7:45 
AnswerRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 7:51
amistry_petlad5-Jun-08 7:51 
QuestionRe: How can I display current time in dialog static control Pin
messages5-Jun-08 5:35
messages5-Jun-08 5:35 
AnswerRe: How can I display current time in dialog static control Pin
amistry_petlad5-Jun-08 7:53
amistry_petlad5-Jun-08 7:53 
GeneralRe: How can I display current time in dialog static control Pin
Hamid_RT6-Jun-08 1:13
Hamid_RT6-Jun-08 1:13 
QuestionConvert to BW Pin
vandana75-Jun-08 5:03
vandana75-Jun-08 5:03 
AnswerRe: Convert to BW Pin
enhzflep5-Jun-08 17:06
enhzflep5-Jun-08 17:06 
GeneralRe: Convert to BW Pin
Nibu babu thomas5-Jun-08 17:19
Nibu babu thomas5-Jun-08 17:19 
GeneralRe: Convert to BW Pin
enhzflep5-Jun-08 17:35
enhzflep5-Jun-08 17:35 

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.