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 › compile error :/ from [Writing your own C++ Trainer]

compile error :/ from [Writing your own C++ Trainer]

Posts 1–8 of 8 · Page 1 of 1
FA
FantaBrause
compile error :/ from [Writing your own C++ Trainer]
Hello i try to compile these trainer
http://www.mpgh.net/forum/17-tutoria...c_trainer.html

and i received these errors

Code:
1>trainer.cpp
1>..\trainer.cpp(40) : error C2664: 'strcmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
can anyone help me out?
#1 · 17y ago
Toymaker
Toymaker
If you post your source i'll fix it for you or is the code at that link what you're using?
#2 · 17y ago
FA
FantaBrause
yes i use from the link above.. if you can fix the error this would be nice.

you can post the fixed code here if you want
#3 · 17y ago
Toymaker
Toymaker
Did you make any changes to the original source? I assumed the original as is would compile and your first error isn't even rellevant to the original code as far as I can see.
#4 · 17y ago
FA
FantaBrause
no i dont make any changes i upload a screenshot from vs++

in the internet i found something ppl. say change the character set from unicode to multibyte set (project/properities/confi.proper/general/Character set

i change it to multibyte and i get this error

Code:
1>Source1.cpp
1>.Source1.cpp(53) : warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>        C:Program FilesMicrosoft Visual Studio 9.0VCincludeconio.h(145) : see declaration of 'getch'
1>.Source1.cpp(64) : warning C4996: 'kbhit': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _kbhit. See online help for details.
1>        C:Program FilesMicrosoft Visual Studio 9.0VCincludeconio.h(147) : see declaration of 'kbhit'
1>.Source1.cpp(66) : warning C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.
1>        C:Program FilesMicrosoft Visual Studio 9.0VCincludeconio.h(145) : see declaration of 'getch'
1>Linking...
1>MSVCRT.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
1>C:UserstommyDesktoptest1111trainerReleasetrainer.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:UserstommyDesktoptest1111trainertrainerReleaseBuildLog.htm"
1>trainer - 2 error(s), 3 warning(s)
so i think something is wrong :/

the screenshot is taken from use unicode set
#5 · 17y ago
Toymaker
Toymaker
Dude... I successfully compiled the code in both Dev-C++ and MVSC++ I don't understand why it's not working for you unless you changed it or use a fail compiler. The original at http://www.mpgh.net/forum/17-tutoria...c_trainer.html works fine, end of story sir.
#6 · 17y ago
FA
FantaBrause
hmmmmmm
uhm i test it with Dev-C++ and it works fine..
i test it with visual studio 2005+2008 and i get these erros :/

no idea whats wrong..but works now with Dev-C++
#7 · 17y ago
CE
Celestialkey
You created the project in MSVS as a Win32 windows application when it should have been a win32 console application.
#8 · 17y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • Writing your own C++ TrainerBy l0ngcat in Game Hacking Tutorials
    46Last post 7y ago
  • Writing your own Visual Basics (v5 or v6) TrainerBy TheRedEye in Game Hacking Tutorials
    29Last post 12y ago
  • Create Your own ADVANCED TrainerBy Twirlyman15 in Combat Arms Discussions
    15Last post 16y ago
  • Make your own trainer with CE 5.4By Twirlyman15 in Combat Arms Hacks & Cheats
    3Last post 18y ago
  • How to make your own radiostation?By nasir91 in General
    3Last post 19y ago

Tags for this Thread

#compile#error#trainer#writing