Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Errors about a process in C++ Project

UnhappyErrors about a process in C++ Project

Posts 1–2 of 2 · Page 1 of 1
LU
luckie12
Errors about a process in C++ Project
hey i have a code for a dll hack but if i whant to compile it i get 8 errors 0 warnings - errors:

Code:
--------------------Configuration: HM - Win32 Debug--------------------
Compiling...
main.cpp
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(50) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(50) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.

main.obj - 8 error(s), 0 warning(s)
The Project Code

Code:
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include <conio.h>
#include <string>
#include <fstream>
#include <float.h>
using namespace std;

 DWORD WINAPI LoopFunction( LPVOID lpParam  )
{
	  BYTE StandingON[] = {0x8B, 0x02, 0x90};
    BYTE CrouchingON[] = {0x8B, 0x11, 0x90};
    BYTE StandingOFF[] = {0x8B, 0x42, 0x4C};
    BYTE CrouchingOFF[] = {0x8B, 0x51, 0x50};

    bool Crosshair = false;

    HANDLE operation7 = GetCurrentProcess();

    while(1) {
        if (GetAsyncKeyState(VK_F3)&0x80000) {
            if (Crosshair == true) {
                WriteProcessMemory(operation7, (void*)(0x05E2C88), &StandingOFF, 3, 0);
                WriteProcessMemory(operation7, (void*)(0x05E2C93), &CrouchingOFF, 3, 0);
                Crosshair = false;

            }
            else if( Crosshair == false) {
                WriteProcessMemory(operation7, (void*)(0x05E2C88), &StandingON, 3, 0);
                WriteProcessMemory(operation7, (void*)(0x05E2C93), &CrouchingON, 3, 0);
                Crosshair = true;
            }

        }
    }

//some CPU relief
    Sleep(200);
	return 0;
}


;}
return 0;
}


BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
    if (dwAttached == DLL_PROCESS_ATTACH) {
        CreateThread(NULL,0,&LoopFunction,NULL,0,NULL);
    }
    return 1;
}
What is wrong?

PS:Using Microsoft visual c++ 6.0 no eclipse
Its from a tutorial (the code)


TY luckie12
#1 · 16y ago
why06
why06
Typical noob. Putting your sleep function outside an infinite loop >_>.... check your brackets. You've got to many. Also your GetAsyncKeyState() will never work because its should be 0x8000. and go learn C++, cuz damn.

I would like to talk to the ****** who made this code, but not you, goddamn leecher. This is what happens when leechers teach other leechers how to code. Try injecting some shit like this and you'll be calling WPM a 100 times a second. which will cause huge amounts of lag. Not only that, but you will have to hold the key down. and even when ur not holding it your liable to crash the system. And if you don't wait for the right modules to load this will probably just crash on injection.

idk, maybe some coder was just screwing with you nubs. In that case. good for him.
#2 · 16y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • [Please Help!] MHS Error when Opening ProcessBy zorith in Combat Arms Hacks & Cheats
    15Last post 18y ago
  • New news about crossfire processBy CrossRaiders in CrossFire Discussions
    11Last post 15y ago
  • ABOUT TVing PROCESS!By :): in Combat Arms Help
    4Last post 15y ago
  • About the error -1 shitBy Hyperion in Combat Arms Hacks & Cheats
    11Last post 18y ago
  • Help about error on elite version hack.By apeguy in Combat Arms Hacks & Cheats
    4Last post 18y ago

Tags for this Thread

None