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

C / C++ / MFC

 
GeneralRe: About creating Smart Device DLL using Libxml2 Pin
leslie wu20-Jan-09 20:58
leslie wu20-Jan-09 20:58 
GeneralRe: About creating Smart Device DLL using Libxml2 Pin
Stuart Dootson20-Jan-09 21:57
professionalStuart Dootson20-Jan-09 21:57 
GeneralRe: About creating Smart Device DLL using Libxml2 Pin
Stuart Dootson20-Jan-09 23:48
professionalStuart Dootson20-Jan-09 23:48 
QuestionDouble Buffer with Bitblt Pin
Killiconn20-Jan-09 14:28
Killiconn20-Jan-09 14:28 
AnswerRe: Double Buffer with Bitblt Pin
Stuart Dootson20-Jan-09 15:55
professionalStuart Dootson20-Jan-09 15:55 
GeneralRe: Double Buffer with Bitblt Pin
Killiconn20-Jan-09 16:19
Killiconn20-Jan-09 16:19 
AnswerRe: Double Buffer with Bitblt Pin
KarstenK21-Jan-09 2:00
mveKarstenK21-Jan-09 2:00 
GeneralHelp required about c language localtime function Pin
Umer Aziz20-Jan-09 6:07
Umer Aziz20-Jan-09 6:07 
I want to use c language function localtime() for the conversion of seconds into date.
As I have learned from someone that this function used the date 1970-01-01 00:00:00 as the base to calculate seconds into date. But when I used it it seems that it use the base date as 1970-01-01 05:00:00. I can't understand this.
Also is it possible to calculate the date from seconds by using someother base date value. for example i have seconds starting from 1994-01-01 00:00:00 to now, then how to calculate the time from these seconds (base date + seconds).

The function used by me is as follows.
void Duration_to_time(int Seconds,char OutputTime[])
{
time_t count_second;
struct tm *newtime;
tzset();
count_second=Seconds;
newtime = localtime(&count_second);
if (strftime(OutputTime, 20, "%Y-%m-%d %H:%M:%S", newtime) == (size_t) 0)
printf("Could not get string from strftime()\n");
}
GeneralRe: Help required about c language localtime function Pin
CPallini20-Jan-09 6:43
mveCPallini20-Jan-09 6:43 
GeneralRe: Help required about c language localtime function Pin
David Crow20-Jan-09 7:12
David Crow20-Jan-09 7:12 
GeneralRe: Help required about c language localtime function Pin
Umer Aziz20-Jan-09 7:19
Umer Aziz20-Jan-09 7:19 
Questionhow to send a file path from shell extension dll to an application Pin
Nitheesh George20-Jan-09 5:32
Nitheesh George20-Jan-09 5:32 
AnswerRe: how to send a file path from shell extension dll to an application Pin
Code-o-mat20-Jan-09 5:53
Code-o-mat20-Jan-09 5:53 
QuestionSutter/Alexandrescu explanation of Exceptions Pin
Member 260377220-Jan-09 5:29
Member 260377220-Jan-09 5:29 
AnswerRe: Sutter/Alexandrescu explanation of Exceptions Pin
Stuart Dootson20-Jan-09 6:02
professionalStuart Dootson20-Jan-09 6:02 
AnswerRe: Sutter/Alexandrescu explanation of Exceptions Pin
Nemanja Trifunovic20-Jan-09 6:20
Nemanja Trifunovic20-Jan-09 6:20 
QuestionCListBox string wrapping Pin
nuclph20-Jan-09 5:00
nuclph20-Jan-09 5:00 
AnswerRe: CListBox string wrapping Pin
Stuart Dootson20-Jan-09 5:47
professionalStuart Dootson20-Jan-09 5:47 
AnswerRe: CListBox string wrapping Pin
Iain Clarke, Warrior Programmer20-Jan-09 6:11
Iain Clarke, Warrior Programmer20-Jan-09 6:11 
GeneralRe: CListBox string wrapping Pin
Nibu babu thomas20-Jan-09 16:57
Nibu babu thomas20-Jan-09 16:57 
GeneralRe: CListBox string wrapping Pin
Iain Clarke, Warrior Programmer20-Jan-09 21:54
Iain Clarke, Warrior Programmer20-Jan-09 21:54 
QuestionLabel box in MFC Pin
bhanu_850920-Jan-09 2:48
bhanu_850920-Jan-09 2:48 
AnswerRe: Label box in MFC Pin
Cedric Moonen20-Jan-09 2:54
Cedric Moonen20-Jan-09 2:54 
GeneralRe: Label box in MFC Pin
bhanu_850920-Jan-09 3:01
bhanu_850920-Jan-09 3:01 
Questionfacing problem on Listing files in List box Control Pin
m_mun20-Jan-09 1:08
m_mun20-Jan-09 1:08 

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.