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 › [Help] Reading Pointer

Question[Help] Reading Pointer

Posts 1–2 of 2 · Page 1 of 1
JO
jonyboy
[Help] Reading Pointer
recently i was learning to make dll for injection and i found this func code:

Code:
unsigned long ReadPointer(unsigned long ulBase, int iOffset)
{
   __try { return *(unsigned long*)(*(unsigned long*)ulBase + iOffset); }
   __except (EXCEPTION_EXECUTE_HANDLER) { return 0; }
}
for example :
addr = 0x0012345
off = 0x10

readpointer(addr, off) -> let say this read value (DWORD) = 1701277249 and char/string value = egnA

DWORD/unsigned long is 4 byte which mean can contain up to 4 char.

i wanna ask how to get value into char/string which have control size that could contain up to 24 char.

ps : im newbie c++
#1 · edited 14y ago · 14y ago
Broderick
Broderick
Just cast the address to a char*. You're not remotely reading memory, it already exists. Just declare a pointer of a given type and cast the address to that type.

Code:
char *someString = (char*)0xDEADBEEF;
#2 · 14y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] Read Pointer FloatsBy wee123 in Visual Basic Programming
    2Last post 15y ago
  • [Need Help] Multi-PointersBy bartjr in Combat Arms Hacks & Cheats
    8Last post 18y ago
  • [Help] new pointers in CE 5.4By chiknwang in Combat Arms Hacks & Cheats
    2Last post 17y ago
  • Help Read This ~By Kevinnqc in Combat Arms Hacks & Cheats
    0Last post 17y ago
  • Need Help? READBy carbon23 in Combat Arms Hacks & Cheats
    9Last post 17y ago

Tags for this Thread

None