The MASM Forum

General => The Workshop => Topic started by: BugCatcher on March 21, 2017, 12:50:01 AM

Title: Question for Siekmanski
Post by: BugCatcher on March 21, 2017, 12:50:01 AM
In your d3d9.inc file, the first 2 virtual tables have the typedef of the id structure.

IDirect3D9 struct
   _vtIDirect3D9 IDirect3D9
IDirect3D9 ends

   LPDIRECT3D9   typedef PTR IDirect3D9
   PDIRECT3D9   typedef PTR IDirect3D9

But the rest of the tables have typedef dword.

IDirect3DSwapChain9 struct
   _vtIDirect3DSwapChain9 IDirect3DSwapChain9
IDirect3DSwapChain9 ends

LPDIRECT3DSWAPCHAIN9   typedef PTR DWORD
PDIRECT3DSWAPCHAIN9   typedef PTR DWORD

Why the difference, reason? Thx.
Title: Re: Question for Siekmanski
Post by: Siekmanski on March 21, 2017, 01:38:47 AM
They are both DWORD type definitions.
Don't remember exactly why I did it this way.
I translated the D3D9 includes in 2003 from C++ to assembly by hand, maybe that's why.
Title: Re: Question for Siekmanski
Post by: jj2007 on March 23, 2017, 08:03:34 PM
Herryquiz is a lousy bot, and his coder is even lousier :greenclp:
Title: Re: Question for Siekmanski
Post by: Siekmanski on March 23, 2017, 09:22:31 PM
 :bgrin: