Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。
尝试新的跨平台 PowerShell https://aka.ms/pscore6
PS C:\Windows\system32> cd D:\ExtCheats-main\ExtCheats-main\ExtCheats
PS D:\ExtCheats-main\ExtCheats-main\ExtCheats> g++ main.cpp Cheats.cpp Render.cpp globals.cpp ext/imgui/imgui.cpp ext/imgui/imgui_draw.cpp ext/imgui/imgui_impl_win32.cpp ext/imgui/imgui_tables.cpp ext/imgui/imgui_widgets.cpp ext/imgui/imgui_impl_dx11.cpp -o ExtCheats.exe -Iext/imgui -lopengl32 -lgdi32 -luser32 -ldwmapi -lws2_32
main.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
main.cpp:114:21: error: cannot convert 'LPCWSTR' {aka 'const wchar_t*'} to 'LPCSTR' {aka 'const char*'} in assignment
114 | wc.lpszClassName = CLASS_NAME;
| ^~~~~~~~~~
| |
| LPCWSTR {aka const wchar_t*}
main.cpp:125:20: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
125 | MessageBox(NULL, L"Error in allocate window", L"Error", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const wchar_t*
In file included from D:/TDM/x86_64-w64-mingw32/include/Windows.h:72,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/winuser.h:3711:54: note: initializing argument 2 of 'int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)'
3711 | WINUSERAPI int WINAPI MessageBoxA(HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType);
| ~~~~~~~^~~~~~
main.cpp:132:30: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
132 | HWND CS2 = FindWindow(NULL, L"Counter-Strike 2");
| ^~~~~~~~~~~~~~~~~~~
| |
| const wchar_t*
In file included from D:/TDM/x86_64-w64-mingw32/include/Windows.h:72,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/winuser.h:3938:64: note: initializing argument 2 of 'HWND__* FindWindowA(LPCSTR, LPCSTR)'
3938 | WINUSERAPI HWND WINAPI FindWindowA(LPCSTR lpClassName,LPCSTR lpWindowName);
| ~~~~~~~^~~~~~~~~~~~
main.cpp:322:79: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
322 | BHOPThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)BHOP, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:330:91: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
330 | TriggerBotThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)TriggerBot, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:338:89: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
338 | SimAimBotThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SimAimBot, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:347:83: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
347 | AimBotThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)AimBot, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:356:87: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
356 | NoRcolioThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)NoRecoil, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:364:93: warning: passing NULL to non-pointer argument 5 of 'void* CreateThread(LPSECURITY_ATTRIBUTES, SIZE_T, LPTHREAD_START_ROUTINE, LPVOID, DWORD, LPDWORD)' [-Wconversion-null]
364 | AntiFlashThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)AntiFlashFunc, instance, NULL, NULL);
| ^~~~
In file included from D:/TDM/x86_64-w64-mingw32/include/winbase.h:29,
from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/processthreadsapi.h:195:169: note: declared here
195 | WINBASEAPI HANDLE WINAPI CreateThread (LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:400:22: error: cannot convert 'LPCSTR' {aka 'const char*'} to 'LPCWSTR' {aka 'const wchar_t*'}
400 | UnregisterClassW(wc.lpszClassName, wc.hInstance);
| ~~~^~~~~~~~~~~~~
| |
| LPCSTR {aka const char*}
In file included from D:/TDM/x86_64-w64-mingw32/include/Windows.h:72,
from BasicStruct.hpp:2,
from main.cpp:5:
D:/TDM/x86_64-w64-mingw32/include/winuser.h:2152:55: note: initializing argument 1 of 'WINBOOL UnregisterClassW(LPCWSTR, HINSTANCE)'
2152 | WINUSERAPI WINBOOL WINAPI UnregisterClassW (LPCWSTR lpClassName, HINSTANCE hInstance);
| ~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'void SimAimBot()':
main.cpp:570:5: error: 'pow' was not declared in this scope
570 | pow(shotat_players[i].Bones[2].x, 2) +
| ^~~
main.cpp:569:18: error: 'sqrt' was not declared in this scope
569 | distance[i] = sqrt(
| ^~~~
main.cpp: In function 'void AimBot()':
main.cpp:666:26: error: 'hypot' is not a member of 'std'
666 | const auto fov = std::hypot(angle.x, angle.y);
| ^~~~~
main.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
main.cpp:402:1: warning: control reaches end of non-void function [-Wreturn-type]
402 | }
| ^
Cheats.cpp: In function 'BOOL bGetModBaseAddr(LPCWSTR, DWORD, DWORD64&)':
Cheats.cpp:56:30: error: cannot convert 'char*' to 'LPCWSTR' {aka 'const wchar_t*'}
56 | if (!lstrcmpW(md.szModule, ModuleName)) {
| ~~~^~~~~~~~
| |
| char*
In file included from D:/TDM/x86_64-w64-mingw32/include/Windows.h:70,
from Cheats.h:2,
from Cheats.cpp:1:
D:/TDM/x86_64-w64-mingw32/include/winbase.h:1418:43: note: initializing argument 1 of 'int lstrcmpW(LPCWSTR, LPCWSTR)'
1418 | WINBASEAPI int WINAPI lstrcmpW (LPCWSTR lpString1, LPCWSTR lpString2);
| ~~~~~~~~^~~~~~~~~
Cheats.cpp: In function 'std::string unionToWide(char16_t)':
Cheats.cpp:105:10: error: 'wstring_convert' is not a member of 'std'
105 | std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
| ^~~~~~~~~~~~~~~
Cheats.cpp:105:59: error: expected primary-expression before ',' token
105 | std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
| ^
Cheats.cpp:105:61: error: expected primary-expression before 'char16_t'
105 | std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
| ^~~~~~~~
Cheats.cpp:106:12: error: 'convert' was not declared in this scope; did you mean 'connect'?
106 | return convert.to_bytes(u16str);
| ^~~~~~~
| connect
Cheats.cpp: In function 'std::string GetPlayerName(HANDLE, DWORD64)':
Cheats.cpp:113:19: warning: NULL used in arithmetic [-Wpointer-arith]
113 | if (dwBase == NULL) return "";
| ^~~~
Cheats.cpp: In constructor 'SelfPlayer::SelfPlayer(const Cheats&)':
Cheats.cpp:348:48: error: type 'Cheats' is not a direct base of 'SelfPlayer'
348 | SelfPlayer::SelfPlayer(const Cheats& cheats) : Cheats(cheats) {
| ^~~~~~
PS D:\ExtCheats-main\ExtCheats-main\ExtCheats>
帮我修改一下
最新发布