News:

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

Calling directx from assembler source

Started by Alloy, October 22, 2011, 07:07:21 PM

Previous topic - Next topic

Alloy

I do not know enough about c++ but is it possible to call directx functions from MASM/JWasm by linking to a compiled c++ obj file?
We all used to be something else. Nature has always recycled.

ToutEnMasm

It is perfectly possible and the use of obj files is the best method to do it.
You have just to take care of the defined prototypes.cdecl = PROTO C.
http://www.masm32.com/board/index.php?topic=7996.0
The translator who made the include files had been perfected since I write this one.
Look at the windows.inc subforum (masm32 forum).

farrier

Alloy,

The link leads to a post using DirectSound to record sound from the mic input.  The code uses the fasm assembler.

http://www.masm32.com/board/index.php?topic=7363.msg54726#msg54726

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

Alloy

We all used to be something else. Nature has always recycled.

Farabi

I think if everything is DirectX-ed I just need to search any free available wrapper for the basis function, to need my preference, something like OpenGL did.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

DX7 and 9 Is faster on the Demo I get. The shadowing system obviuosly faster than OpenGL. I kept with OpenGL is because it is C and not COM. if DX had a C wrapper, I think I'll switch to DX.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ToutEnMasm

Quote
The shadowing system obviuosly faster than OpenGL. I kept with OpenGL is because it is C and not COM. if DX had a C wrapper, I think I'll switch to DX.
Com is easy to use (No more difficult than to use API),just translate the header's with
http://www.masm32.com/board/index.php?topic=5428.msg40500#msg40500