Skip to content

Commit

Permalink
modify:match xengine v7.18 version
Browse files Browse the repository at this point in the history
fixed:linux build error
fixed:tab switch show
  • Loading branch information
xengine-qyt committed Aug 5, 2021
1 parent bfa5a5e commit 5783bdc
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions XEngine_Source/AuthorizeModule_Configure/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
#endif

#endif //PCH_H
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <XEngine_Include/XEngine_CommHdr.h>
#include <XEngine_Include/XEngine_Types.h>
#include <XEngine_Include/XEngine_BaseLib/BaseLib_Define.h>
Expand Down
1 change: 1 addition & 0 deletions XEngine_Source/AuthorizeModule_Protocol/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#endif //PCH_H
#include <string.h>
#include <errno.h>
#include <XEngine_Include/XEngine_CommHdr.h>
#include <XEngine_Include/XEngine_Types.h>
#include <XEngine_Include/XEngine_ProtocolHdr.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ void __stdcall XEngine_TaskEvent_Client(LPCSTR lpszUserAddr, LPCSTR lpszUserName
_i64tot(nLeftTimer, tszTimeLeft, 10);

pClass_This->m_DlgUser.m_ListCtrlOnlineClient.SetItemText(i, 3, tszTimeONLine);
if ((ENUM_HELPCOMPONENTS_AUTHORIZE_SERIAL_TYPE_MINUTE == en_SerialType) || (ENUM_HELPCOMPONENTS_AUTHORIZE_SERIAL_TYPE_TIME == en_SerialType))
if ((ENUM_HELPCOMPONENTS_AUTHORIZE_SERIAL_TYPE_MINUTE == en_AuthRegSerialType) || (ENUM_HELPCOMPONENTS_AUTHORIZE_SERIAL_TYPE_TIME == en_AuthRegSerialType))
{
pClass_This->m_DlgUser.m_ListCtrlOnlineClient.SetItemText(i, 4, tszTimeLeft);
}
else
{
pClass_This->m_DlgUser.m_ListCtrlOnlineClient.SetItemText(i, 4, lpszLeftDate);
}
pClass_This->m_DlgUser.m_ListCtrlOnlineClient.SetItemText(i, 5, lpszKeyType[en_SerialType]);
pClass_This->m_DlgUser.m_ListCtrlOnlineClient.SetItemText(i, 5, lpszKeyType[en_AuthRegSerialType]);

if (nLeftTimer <= 0)
{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,13 @@ void CXEngineAuthorizeAppDlg::OnTcnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult
m_DlgUser.ShowWindow(FALSE);
m_DlgSerial.ShowWindow(TRUE);
m_DlgLocal.ShowWindow(FALSE);
break;
case 3:
m_DlgConfig.ShowWindow(FALSE);
m_DlgUser.ShowWindow(FALSE);
m_DlgSerial.ShowWindow(FALSE);
m_DlgLocal.ShowWindow(TRUE);
break;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#endif //PCH_H
#include <string.h>
#include <list>
#include <string>
using namespace std;
#include <XEngine_Include/XEngine_CommHdr.h>
#include <XEngine_Include/XEngine_Types.h>
Expand Down Expand Up @@ -43,6 +44,12 @@ using namespace std;
extern BOOL SQLPacket_IsErrorOccur;
extern DWORD SQLPacket_dwErrorCode;

#ifdef _UNICODE
typedef std::wstring tstring;
#else
typedef std::string tstring;
#endif

#ifdef _WINDOWS
#ifdef _WIN64
#pragma comment(lib,"x64/XEngine_BaseLib/XEngine_BaseLib.lib")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ using namespace std;
extern BOOL Session_IsErrorOccur;
extern DWORD Session_dwErrorCode;

#ifdef _UNICODE
typedef std::wstring tstring;
#else
typedef std::string tstring;
#endif

#ifdef _WINDOWS
#ifdef _WIN64
#pragma comment(lib,"x64/XEngine_BaseLib/XEngine_BaseLib.lib")
Expand Down

0 comments on commit 5783bdc

Please sign in to comment.