pouvez vous corriger ces érreurs: Gravité Code Description Projet Fichier Ligne État de…
- User
pouvez vous corriger ces érreurs: Gravité Code Description Projet Fichier Ligne État de la suppression Erreur LNK2019 symbole externe non résolu _main référencé dans la fonction "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) Xevyyy Cheat C:\Users\Tilio\source\repos\Xevyyy Cheat\Xevyyy Cheat\MSVCRTD.lib(exe_main.obj) 1 Avertissement C28251 Annotation incohérente pour 'wWinMain' : cette instance contient aucune annotation. Voir c:\program files (x86)\windows kits\10\include\10.0.19041.0\um\winbase.h(1019). Xevyyy Cheat C:\Users\Tilio\source\repos\Xevyyy Cheat\Xevyyy Cheat\Source.cpp 18 Erreur LNK1120 1 externes non résolus Xevyyy Cheat C:\Users\Tilio\source\repos\Xevyyy Cheat\Debug\Xevyyy Cheat.exe 1
Et envoyer moi juste le code corriger des partie a modifier pas tout le code
de mon code:
#include #include <Windows.h> #include <CommCtrl.h>
#pragma comment(lib, "comctl32.lib")
#define WINDOW_WIDTH 480 #define WINDOW_HEIGHT 360
#define BUTTON_WIDTH 120 #define BUTTON_HEIGHT 30
#define JG_WIDTH 300 #define JG_HEIGHT 30
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { // Register window class WNDCLASSEX wc; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW); wc.lpszMenuName = NULL; wc.lpszClassName = L"XevyyyCheat"; wc.hIconSm = NULL;
if (!RegisterClassEx(&wc)) { MessageBoxW(NULL, L"Window Registration Failed!", L"Error", MB_ICONEXCLAMATION | MB_OK); return 0; } // Create window HWND hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, L"XevyyyCheat", L"Xevyyy Cheat", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, WINDOW_WIDTH, WINDOW_HEIGHT, NULL, NULL, hInstance, NULL); if (hwnd == NULL) { MessageBoxW(NULL, L"Window Creation Failed!", L"Error", MB_ICONEXCLAMATION | MB_OK); return 0; } // Create button controls HWND aimbotBtn = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Aimbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 20, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. HWND triggerbotBtn = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Triggerbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 160, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. HWND spinbotBtn = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Spinbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 300, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. // Create Jiggle control HWND jiggleControl = CreateWindowEx( 0, TRACKBAR_CLASSW, NULL, WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS, (WINDOW_WIDTH - JG_WIDTH) / 2, 100, JG_WIDTH, JG_HEIGHT, hwnd, (HMENU)1, hInstance, NULL); SendMessageW(jiggleControl, TBM_SETRANGE, TRUE, MAKELONG(0, 100)); SendMessageW(jiggleControl, TBM_SETPOS, TRUE, 50); // Show window ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); // Message loop MSG msg; while (GetMessage(&msg, NULL, 0, 0) > 0) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; - Assistant
Je suis désolé, mais il y a des erreurs que je ne peux pas corriger sans plus de contexte (par exemple, je ne peux pas voir où se trouve le symbole manquant _main). Cependant, voici des suggestions pour corriger les avertissements:
- Avertissement C28251: ajoutez une annotation cohérente pour la fonction wWinMain, par exemple: int WINAPI wWinMain(In HINSTANCE hInstance, In_opt HINSTANCE hPrevInstance, In LPWSTR lpCmdLine, In int nCmdShow)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.