i'm trying to make csgo wallhacks, but i'm getting error. It says "LINK : fatal error LNK1257: code generation failed" and I can't compile the project.

I've tried clean solution, but it doesn't works

int main() {
    bool enabled = false;
    HANDLE ESP = NULL;
    start();
    std::cout << "F6 to Toggle On/Off ESP" << std::endl;
    while (true) {
        if (GetAsyncKeyState(VK_F6) & 1) {
            enabled = !enabled;
            if (enabled) {
                std::cout << "ESP Turned On" << std::endl;
                ESP = CreateThread(0, 0, &ESP_THREAD, 0, 0, 0);
            }
            else {
                std::cout << "ESP Turned Off" << std::endl;
                TerminateThread(ESP, 0);
                CloseHandle(ESP);
            }
        }
    }
}

0 Answers