you can try this way...
CString getLogFileName()
{
CString strFileName;
SYSTEMTIME st;
::GetLocalTime(st);
strFileName.Format(TEXT("%04d%02d%02d", st.wYear, st.wMonth, st.wDay);
return strFileName;
}
bye,
m_l
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: using free function after mallocThreaded View
|
Click Here to Expand Forum to Full Width |