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 › Game Development › DirectX/D3D Development › D3DXCreateTextureFromResource

D3DXCreateTextureFromResource

Posts 1–5 of 5 · Page 1 of 1
25
258456
D3DXCreateTextureFromResource
Ok, this function ticks me off. The texturefromfile version works for me but i want to do it with resources so i don't have to carry around photos. So I have confirmed that the resource is correct by using FindResource, and it just doesn't load the picture. It's driving me nuts, any help? Thanks.


EDIT: After further research i have found out that it's returning blabla_INVALID_DATA or something like that. So why's the data invalid? It's a legit bmp exported with photoshop.






@Shunnai
@topblast
@Qmo
@Hell_Demon
@why06
#1 · edited 14y ago · 14y ago
topblast
topblast
@258456

@258456

i hate it also, so i dont use it


D3DXCreateTextureFromFileInMemory

D3DXCreateTextureFromFileInMemory function

http://www.mpgh.net/forum/207-combat...w-sprites.html
#2 · edited 14y ago · 14y ago
Hell_Demon
Hell_Demon
make sure the hSrcModule is correct(null if your .exe has the image or a module handle if a module has it)
#3 · 14y ago
25
258456
Quote Originally Posted by topblast View Post
@258456

@258456

i hate it also, so i dont use it


D3DXCreateTextureFromFileInMemory

D3DXCreateTextureFromFileInMemory function

http://www.mpgh.net/forum/207-combat...w-sprites.html
I will check it out thanks.

---------- Post added at 07:13 PM ---------- Previous post was at 07:12 PM ----------

Quote Originally Posted by Hell_Demon View Post
make sure the hSrcModule is correct(null if your .exe has the image or a module handle if a module has it)

Well i have the correct module handle. I have to put in the name of my file cuz i can't put NULL since it's not an exe.






All i want to do is make a texture out of my menu picture. So is there a way other than this to do it without using this stupid function?
I just want to make it so that i don't have to have a picture file always with my hack. I want it to be included automatically.
#4 · edited 14y ago · 14y ago
Saltine
Saltine
Quote Originally Posted by 258456 View Post
I will check it out thanks.

---------- Post added at 07:13 PM ---------- Previous post was at 07:12 PM ----------




Well i have the correct module handle. I have to put in the name of my file cuz i can't put NULL since it's not an exe.






All i want to do is make a texture out of my menu picture. So is there a way other than this to do it without using this stupid function?
I just want to make it so that i don't have to have a picture file always with my hack. I want it to be included automatically.
With the D3DXCreateTextureFromFileInMemory method you can use an array of BYTE to avoid including an external file...
#5 · 14y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None