SetLogName Sets the filename of the log file. If date stamping is enabled then then date stamp will be instered just be for the extenion in the filename Params logName - file name (plus optional path) Return 0 - (UH_SUCCESS) 1 - (UH_ERROR) ***********************************/
| 931 | 1 - (UH_ERROR) |
| 932 | ***********************************/ |
| 933 | int CUH_Control::SetLogName(LPCTSTR logName){ |
| 934 | |
| 935 | int rt = UH_SUCCESS; |
| 936 | |
| 937 | int len = (int)_tcslen(logName); |
| 938 | |
| 939 | if(len <1 || len > 255){ |
| 940 | rt = UH_ERROR; |
| 941 | } |
| 942 | else{ |
| 943 | if(m_logName != NULL) |
| 944 | delete[] m_logName; |
| 945 | |
| 946 | m_logName = new _TCHAR[len+1]; |
| 947 | _tcscpy(m_logName,logName); |
| 948 | } |
| 949 | |
| 950 | return rt; |
| 951 | } |
| 952 | /********************************** |
| 953 | SetLogName |
| 954 | Sets the filename of the log file. |
nothing calls this directly
no outgoing calls
no test coverage detected