Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ask about IDirect3D9

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
peter4d5
Cheater
Reputation: 0

Joined: 21 Dec 2010
Posts: 37

PostPosted: Fri Jun 14, 2013 9:42 pm    Post subject: ask about IDirect3D9 Reply with quote

from CE

Code:
  hr=d3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, x, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &d3d9device);
   
   uintptr_t *a=(uintptr_t *)*(uintptr_t *)d3d9device;
           


and what's it 'a' in delphi?
Code:
var
 3d9: IDirect3D9;
 d3dpp: TD3DPresent_Parameters;
 d3d9device :  IDirect3DDevice9;
 a : PDwordArray;

begin
 hr := 3d9.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, x , D3DCREATE_SOFTWARE_VERTEXPROCESSING, @d3dpp,d3d9device);

   a :=   

thank you.

_________________
my name is peter4d5
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jun 14, 2013 10:49 pm    Post subject: Reply with quote

Something like this:
a := pointer(pointer(dword(d3d9device^);

I don't code in Delphi at all, used Google to figure out how to handle pointers in Delphi. Not sure if you will need to adjust the type of a though.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25824
Location: The netherlands

PostPosted: Sat Jun 15, 2013 3:25 am    Post subject: Reply with quote

PPtruintarray(d3d9device)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites