Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 06:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



D3D Hook - ARGB

Discussion on D3D Hook - ARGB within the C/C++ forum part of the Coders Den category.

Reply
 
Old 02/27/2014, 10:18   #16


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Quote:
Originally Posted by Chriko2502 View Post
Danke euch! Funktioniert alles so wie es soll! Nette und kompetente Hilfe!

Hi,

bin grade dabei mir text anzeigen zu lassen, funktioniert soweit auch ganz gut.


PHP Code:
void initFont(IDirect3DDevice9pDevice) {
    if (!
fontInitialized) {
        
D3DXCreateFont(pDevice150FW_BOLD0FALSEDEFAULT_CHARSETOUT_TT_ONLY_PRECISDEFAULT_QUALITYDEFAULT_PITCH FF_DONTCARE"Arial", &m_pFont);
        
fontInitialized true;
    }

PHP Code:
initFont(pDevice);
drawText(8015255255255255"~~ D3D9 Hook ~~");
drawText(2033255255255255"Press [INSERT] To Show/Hide Menu!"); 


Geht soweit alles wunderbar. Jetzt ist jedoch das Problem, das beim resizen des Windows und schließen der Applikation der folgende Fehler auftritt (aber nur bei den SDK Sampels von DirectX).

"The D3D device has a non-zero reference count, meaning some objects were not released"

Jetzt ist die Frage, wo geb ich mein Font am besten wieder frei!?

Danke schon einmal
Hook Reset und manage dort deine Ressourcen, dazu ist der Spaß gedacht.

buFFy! is offline  
Thanks
1 User
Old 03/02/2014, 15:53   #17
 
Master674b's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 255
Received Thanks: 110
Quote:
Originally Posted by Mostey View Post
Mittels der Release() Methode die du auf das Objekt anwendest.

Du musst bei DirectX viele benutzte Ressourcen wieder freigeben, das Device zählt übrigens auch dazu.
Wofür gibts CComPtr und generell smart pointer?
Ich hab bei mir nicht einen einzigen raw-pointer im Code. Gebe auch generell nie etwas selber frei, das darf der Destruktor des smart pointerts übernehmen.
Master674b is offline  
Reply


Similar Threads Similar Threads
WarLord Public Hook (Client Hook) 01.03 Rleased Official Epvp Release by pastalov.
03/03/2012 - WarRock Hacks, Bots, Cheats & Exploits - 4 Replies
hi. Endlich hat WarLord seinen Public Hack mal geupdated :handsdown: Hier habt ihr Ihn: http://img715.imageshack.us/img715/7504/frecky.pn g Der Download befindet sich im anhang! Virus Check: https://www.virustotal.com/file/3792beba0863829ec 3e2b53f3b0c17d20bfc09c7d76f5f24967a79f1a82a4ddb/an alysis/1330708386/
<26.06.11> Chico™ Public Hook, //Invisible//Chams /Stamina/Mini Hook/NO CRASH VERSION
07/08/2011 - WarRock Hacks, Bots, Cheats & Exploits - 46 Replies
26.06.11 Hack Released 26.06.11 SuperNoSpread Problem Fixxen Status= Not in Hack Hej Com, leider hab ich eine schlechte nachricht xP^^ aus egendeinen Grund verursacht bei mir SuperNoSpread einen Direkten Crash sobald man in game ist, deshalb habe ich es entfernt O,o der Hack ist tortzdem nett und wird euch gefallen, sobald ich mehr addys habe kommen mehrere funktionen noch dazu ;) http://img4.fotos-hochladen.net/uploads/public24e lfvtrw1u.png STOP! VOR DEM DOWNLOAD! Mit Dem...



All times are GMT +1. The time now is 06:50.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.