Beispiel #1
0
STDMETHODIMP CComDictionary::SetUnitCurrentTime(WORD UnitNo)
{
	// TODO: Add your implementation code here
	CDictionary::SetUnitCurrentTime (UnitNo);
	TUnitComment* C = GetCommentsByUnitId(m_Units[UnitNo].m_EntryId);
	C->modif_tm = RmlGetCurrentTime();
	return S_OK;
}
Beispiel #2
0
void seman_daemon_log(const string&  t)
{
	string FileName = "tr_srv.log";
	try {
		string log_path  = GetRegistryString( "Software\\Dialing\\Logs\\Main" );
		FileName = log_path + FileName;

		FILE * fp = fopen (FileName.c_str(), "a");
		struct tm today = RmlGetCurrentTime();
		char tmpbuf[255];
		strftime( tmpbuf, 255,"%H:%M, %d %B %Y > ", &today );
		fprintf (fp, "%s", tmpbuf); 
		fprintf (fp, "%s\n", t.c_str()); 
		fclose(fp);

	}
	catch (...) {
	};
}
Beispiel #3
0
TUnitComment::TUnitComment() 
{
		modif_tm = RmlGetCurrentTime();
		Comments[0] = 0;
		Editor[0] = 0;
};