Can someone please help me with the value of this gibberish in dinput.h? How do I calculate the value of DIPROP_AXISMODE? Here is a snippet of dinput.h..



MAKEDIPROP is a macro defined as...

#ifdef __cplusplus
#define MAKEDIPROP(prop) (*(const GUID *)(prop))
#define MAKEDIPROP(prop) ((REFGUID)(prop))

I think MAKEDIPROP is a macro but I don't know what it does.

Also I was thinking about getting an old C++ compiler just to decode the DirectX include files. What is the lowest version of VC++ I could use for DirectX 7?

Thanks in advance.
Posted on 2002-12-04 08:42:31 by CharlieB
I just tried ignoring the macro MAKEDIPROP and set DIPROP_AXISMODE to 2 and it works.:confused:

C++ seems to make simple things complicated.

Does anyone have asm include files for DirectX 7 that I could have? MASM or TASM would be fine

Thanks again
Posted on 2002-12-04 20:03:07 by CharlieB

those macros are just casts to keep the c++/c compiler happy; in assembler you can ignore them, much like MAKEINTRESOURCE etc.

Posted on 2002-12-05 08:43:28 by stormix