The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: lonewolff on March 13, 2009, 10:19:33 AM

Title: DirectX 9c include files
Post by: lonewolff on March 13, 2009, 10:19:33 AM
Does anyone know where I might be able to find d3d9.inc (if there is such a beast)?

I would love to have a crack at programming something under DirectX 9c in assembly  :bg

Thanks in advance.
Title: Re: DirectX 9c include files
Post by: herge on March 13, 2009, 11:00:36 AM
 Hi lonewolf:

JWASM (http://www.japheth.de/JWasm.html)
It's got something to do with win32inc I think.


Regards herge
Title: Re: DirectX 9c include files
Post by: ToutEnMasm on March 13, 2009, 12:07:54 PM
Hello,
To find this,you are at the right place
http://www.masm32.com/board/index.php?topic=8040.msg58816#msg58816
I am the beast  :lol that translate it , search translator and you can deal with the directx SDK that can be downloaded for free.
You have to deal also with names of functions incompatibles with masm in the msvcrt.lib,just load them dynamically (using the library and the dynamic call is possible).


Title: Re: DirectX 9c include files
Post by: Demi on March 21, 2009, 04:09:09 AM
Hi Lonewolf,

I been working on a project for awhile and dealing with directx.  One of issues you will run into is most of directx deals with virtual function calls. The methods used to access the library and make calls  in my eyes is not right but then everyone has their own way of programming in ASM. I made a tool that makes getting the virtual function calls without all the hassle of loading a library and passing calls. The tool I made is very rough and still has bugs  but I''ll throw in the source code so you or anyone else can fix it. It works for me so I never went past initial development. The tools doe not read and process new compiler headers and even H2INCX can't phrase them but you can hand edit the virtual function definitions and still extract the macros.

   I'll throw in an example ASM file that is a rework of the Directx Tutorial and the finished product so you can see it works. Get H2INCX. My little tool is complement to H2INCX.

D

[attachment deleted by admin]
Title: Re: DirectX 9c include files
Post by: UtillMasm on March 21, 2009, 05:33:55 AM
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: vertices.asm
d3d9.inc(24) : fatal error A1000: cannot open file : \masm32\gametesting\d3d9typ
es.INC

There has been an error while assembling this project.

Press any key to continue . . .
===================
hehe  :bg
Title: Re: DirectX 9c include files
Post by: Demi on March 21, 2009, 06:48:11 AM
Quote from: UtillMasm on March 21, 2009, 05:33:55 AM
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: vertices.asm
d3d9.inc(24) : fatal error A1000: cannot open file : \masm32\gametesting\d3d9typ
es.INC

There has been an error while assembling this project.

Press any key to continue . . .
===================
hehe  :bg

D'OH!

Dang I missed a few files and did not edit it my bad. Here is the fixed stuff. Ok anything else missing I will patch it LOL




[attachment deleted by admin]