Hi ! I'm trying to convert my asctime calls to asctime_s but I'm having trouble with the first parameter...
1 2 3 4 5 6 7 8 9 10
//timestamp
time_t ltime; /* calendar time */
ltime = time(NULL); /* get current cal time */
//works fine
m_hDisplayTime.ReplaceSel((LPCTSTR)asctime( localtime(<ime) ));
//doesnt work at all...
char* buffer;
m_hDisplayTime.ReplaceSel((LPCTSTR)asctime_s(buffer, sizeof(buffer), localtime(<ime)));