[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
- Previous message: [GME-commit]
GMESRC/GME/MgaUtil GmeDlg.cpp,1.13,1.14 GmeDlg.h,1.11,1.12
MgaRegistrar.cpp,1.43,1.44 MgaRegistrar.h,1.21,1.22
MgaUtil.rc,1.51,1.52 resource.h,1.32,1.33
- Next message: [GME-commit] GMESRC/GME/Interfaces InterfaceVersion.h,1.64,1.65
MgaUtil.idl,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [GME-commit]
GMESRC/GME/MgaUtil GmeDlg.cpp,1.13,1.14 GmeDlg.h,1.11,1.12
MgaRegistrar.cpp,1.43,1.44 MgaRegistrar.h,1.21,1.22
MgaUtil.rc,1.51,1.52 resource.h,1.32,1.33
- Next message: [GME-commit] GMESRC/GME/Interfaces InterfaceVersion.h,1.64,1.65
MgaUtil.idl,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list