-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (23 loc) · 715 Bytes
/
main.cpp
File metadata and controls
31 lines (23 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "OpenFileOrganizer.h"
int main(int argc, char* argv[])
{
//Code Page Identifiers
//Unicode UTF-16, little endian byte order (BMP of ISO 10646)
const char CP_UTF_16LE[] = ".1200";
setlocale(LC_ALL, CP_UTF_16LE);
//Prepare for unicode output
int setmodestatus = _setmode(_fileno(stdout), _O_U16TEXT);
//might need for linux?
//setlocale(LC_ALL, "en.UTF-8")
QApplication a(argc, argv);
OpenFileOrganizer w;
w.show();
qInstallMessageHandler(OpenFileOrganizer::QMessageOutput);
return a.exec();
}
//int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
// PSTR lpCmdLine, int nCmdShow)
////int main(int argc, char* argv[])
//{
// ok();
//}