Change Windows Simulator from X86 to X64 (#3866)

* change simulator version from x86 to x64
* Fix some bugs for x64 version simulator
This commit is contained in:
timlyeee
2021-09-07 09:58:52 +08:00
committed by GitHub
parent 2134db8c4e
commit ad048dff55
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ gulp.task('gen-simulator', async function () {
var args = [];
args.push('-G');
if (isWin32) {
args.push('Visual Studio 15 2017','-A','Win32');
args.push('Visual Studio 15 2017','-A','x64');
}
else {
args.push('Xcode');
@@ -25,7 +25,6 @@
#pragma comment(lib, "comctl32.lib")
#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include "cocos/base/UTF8.h"
#include "stdafx.h"
@@ -37,7 +37,7 @@ PlayerEditBoxServiceWin::PlayerEditBoxServiceWin(HWND hwnd)
: _hfont(NULL)
{
_hwnd = hwnd;
HINSTANCE instance = (HINSTANCE)GetWindowLong(_hwnd, GWL_HINSTANCE);
HINSTANCE instance = (HINSTANCE)GetWindowLong(_hwnd, GWLP_HINSTANCE);
DWORD style = WS_CHILD | ES_LEFT | ES_AUTOHSCROLL;
_hwndSingle = CreateWindowEx(WS_EX_CLIENTEDGE, (LPCSTR)L"Edit", (LPCSTR)L"", style, 0, 0, 0, 0, _hwnd, NULL, instance, NULL);
style = WS_CHILD | ES_MULTILINE | ES_LEFT | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL;