News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Using DirectX!

Started by Ariel, September 11, 2005, 01:36:39 AM

Previous topic - Next topic

Ariel

Hello everyone. I am new at this forum and i like to apologize for my english, I've been using masm32 for a long time and i was allwys intrested in using DirectX in my projects but it seems that there is not a good header for masm32 that allow me to use it, so i decided to make my own header and now i can use some parts of DirectInput, DirectMusic, Direct3D and DirectShow, but the process of translating is very long and hard
Can anybody tell me if there is a good header (and completed) of DirectX9 somewhere ?

Ariel

Oh!, I forgot, If you like to see my job, please let my know. I have made some macros that make using COM objects a very easy task. For instance, this sample using DirectShow to play a file
...
Some includes
...
.data
   COM pGraph, IGraphBuilder
   COM pControl, IMediaControl
   COM pEvent, IMediaEventEx
   FileName WCHAR L(<demo..avi>),0

.code
Start PROC
   invoke   CoInitialize, NULL
   invoke    CoCreateInstance, addr CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, addr IID_IGraphBuilder, addr pGraph
   cinvoke   pGraph, QueryInterface, addr IID_IMediaControl, addr pControl
   cinvoke   pGraph, QueryInterface, addr IID_IMediaEventEx, addr pEvent
   cinvoke pGraph, RenderFile, addr FileName, NULL
   cinvoke pControl, Run
   cinvoke pEvent, WaitForCompletion, INFINITE, addr evCode

   cinvoke   pControl, Release
   cinvoke pEvent, Release
   cinvoke pGraph, Release
   invoke   ExitProcess, 0
Start EndP
   END Start

Biterider

Hello Ariel
The ObjAsm32 package has a folder in the code section called DirectX. There you can find all include files to interface the DirectX 9c engine.

Regards,

Biterider