forked from Anne081031/WinParkUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
53 lines (42 loc) · 1.23 KB
/
main.cpp
File metadata and controls
53 lines (42 loc) · 1.23 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <QtGui/QApplication>
#include <QTextCodec>
#include <QtPlugin>
#include "mainwindow.h"
#include "Common/commonfunction.h"
//Q_IMPORT_PLUGIN(qjpeg)
//Q_IMPORT_PLUGIN(qgif)
//Q_IMPORT_PLUGIN(qkrcodecs)
/*
存储过程采用一个调用入口方式
SpEntance( in xmlParam, out xmlInfo )
<Params>
<Host>127.0.0.1</Host>
<User></User>
<-- Call SP -->
<SubSP>Test</SubSP> switch call sub SP
<Operation>Insert Update Delete</Operation> switch
<Data>
<p0>...</p0>
</Data>
</Params>
*/
int main(int argc, char *argv[])
{
CMySqlDatabase::MySQLLibraryInit( 0, NULL );
QApplication a(argc, argv);
// MBCS(DBCS) UCS
// ASCI ANSI ISO14060 GB2313 GBK GB18030 GB13000 BIG5 CJK
//GBK、GB2312 GB18030--Unicode--UTF8
//UTF8--Unicode--GBK、GB2312 GB18030
QTextCodec *pCodec = CCommonFunction::GetTextCodec( );// QTextCodec::codecForName( "GB18030" ); //System//获取系统编码
QTextCodec::setCodecForLocale( pCodec );
QTextCodec::setCodecForCStrings( pCodec );
QTextCodec::setCodecForTr( pCodec );
//CCommonFunction::GetSyncPass( ).lock( );
CCommonFunction::StartupSplash( );
MainWindow w;
w.show();
CCommonFunction::CleanupSplash( &w );
//CMySqlDatabase::MySQLLibrayEnd( );
return a.exec( );
}