[commit] r2095 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Oct 30 17:26:33 CDT 2012


Author: ksmyth
Date: Tue Oct 30 17:26:32 2012
New Revision: 2095

Log:
Fix /regserver

Modified:
   trunk/GME/Gme/GMEApp.cpp

Modified: trunk/GME/Gme/GMEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEApp.cpp	Tue Oct 30 16:40:11 2012	(r2094)
+++ trunk/GME/Gme/GMEApp.cpp	Tue Oct 30 17:26:32 2012	(r2095)
@@ -187,19 +187,6 @@
 		
 		if(bFlag && !wcsicmp(pszParam, L"d")) bNoProtect = true;
  		else if(bFlag && !wcsicmp(pszParam, L"l")) bOpenLast = true;
-		else if(bFlag && !wcsicmp(pszParam, L"REGSERVER")) {
-			TCHAR c[200];
-			GetModuleFileName(NULL, c, sizeof(c)/sizeof(c[0]));
-			CComPtr<ITypeLib> it;
-			HRESULT hr = LoadTypeLibEx(CComBSTR(c),REGKIND_REGISTER, &it);
-			if(hr == S_OK) { AfxMessageBox(_T("Registered")); exit(0); }
-			else { AfxMessageBox(_T("Registration error: ") + hr); exit(-1); }
-		}
-		else if(bFlag && !wcsicmp(pszParam, L"UNREGSERVER")) {
-			HRESULT hr = UnRegisterTypeLib(__uuidof(__GmeLib), 1, 0, LANG_NEUTRAL, SYS_WIN32);
-			if(hr == S_OK) { AfxMessageBox(_T("Unregistered")); exit(0); }
-			else { AfxMessageBox(_T("Unregistration error: ") + hr); exit(-1); }
-		}
 		else if(bFlag && wcsnicmp(pszParam, L"run:", 4) == 0)
 		{
 			run = pszParam + 4;


More information about the gme-commit mailing list