SetTimeStampFormat Sets the format for stamped lines. See the information on the strftime function for for full information on format strings Params formatString - format mask for the time stamp Return 0 - (UH_SUCCESS) 1 - (UH_ERROR) ***********************************************/
| 1428 | 1 - (UH_ERROR) |
| 1429 | ***********************************************/ |
| 1430 | int CUH_Control::SetTimeStampFormat(LPCTSTR formatString){ |
| 1431 | |
| 1432 | int len = (int)_tcslen(formatString); |
| 1433 | |
| 1434 | if(len <1){ |
| 1435 | return UH_ERROR; |
| 1436 | } |
| 1437 | |
| 1438 | if(m_DateFormatString != NULL) |
| 1439 | delete[] m_DateFormatString; |
| 1440 | |
| 1441 | m_DateFormatString = new _TCHAR[len+1]; |
| 1442 | _tcscpy(m_DateFormatString,formatString); |
| 1443 | |
| 1444 | return UH_SUCCESS; |
| 1445 | } |
| 1446 | /********************************************** |
| 1447 | GetTimeStampFormat |
| 1448 | Gets the format for stamped lines. See the |
nothing calls this directly
no outgoing calls
no test coverage detected