Просмотр исходного кода

time formats go off of system formats now

Scott Brogden 7 лет назад
Родитель
Сommit
3a873c0ab9
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      CP_Main.cpp

+ 5 - 0
CP_Main.cpp

@@ -160,6 +160,11 @@ BOOL CCP_MainApp::InitInstance()
 
 	LoadLibrary(TEXT("MSFTEDIT.DLL"));
 
+	setlocale(LC_COLLATE, ".OCP"); // sets the sort order
+	setlocale(LC_MONETARY, ".OCP"); // sets the currency formatting rules
+	setlocale(LC_NUMERIC, ".OCP"); // sets the formatting of numerals
+	setlocale(LC_TIME, ".OCP"); // defines the date/time formatting
+
 	//MessageBox(NULL, _T("ditto starting"), _T("d"), MB_OK);
 
 	DittoCommandLineInfo cmdInfo;