[GME-commit] GMESRC/GME/Console ConsoleCtl.cpp,1.4,1.5

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu Jan 12 22:45:01 CST 2006


Update of /project/gme-repository/GMESRC/GME/Console
In directory escher:/tmp/cvs-serv15202

Modified Files:
	ConsoleCtl.cpp 
Log Message:
Timestamps added.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: ConsoleCtl.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Console/ConsoleCtl.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ConsoleCtl.cpp	15 Apr 2005 18:24:10 -0000	1.4
--- ConsoleCtl.cpp	12 Jan 2006 22:44:59 -0000	1.5
***************
*** 7,10 ****
--- 7,11 ----
  #include "ConsolePpg.h"
  #include "GME.h"
+ #include "MgaUtil.h"
  #include <mshtml.h>         //IWeb objects
  #include <limits.h>
***************
*** 284,288 ****
--- 285,306 ----
      {
  		CString line;
+ 		
  		line.Format("<IMG SRC=\"%s\" ALIGN=MIDDLE > %s<BR>", icons[type], str);
+ 
+ 		VARIANT_BOOL time_stamping = VARIANT_FALSE; // default
+ 		try {
+ 			CComPtr<IMgaRegistrar> registrar;
+ 			COMTHROW( registrar.CoCreateInstance(L"Mga.MgaRegistrar") );
+ 
+ 			COMTHROW( registrar->GetTimeStamping(REGACCESS_USER, &time_stamping));
+ 			if(time_stamping != VARIANT_FALSE)
+ 			{
+ 				CTime time = CTime::GetCurrentTime();
+ 				line = _T("[") + time.Format(_T("%I:%M ")) + (time.GetHour() < 12 ? _T("AM] "):_T("PM] ")) + line;
+ 			}
+ 		} catch(hresult_exception &)
+ 		{
+ 		}
+ 
  		try {
  			CComPtr<IHTMLDocument2> pHtmlDoc;



More information about the GME-commit mailing list