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...
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.
#define DIPROP_BUFFERSIZE MAKEDIPROP(1)
#define DIPROP_AXISMODE MAKEDIPROP(2)
MAKEDIPROP is a macro defined as...
#ifdef __cplusplus
#define MAKEDIPROP(prop) (*(const GUID *)(prop))
#else
#define MAKEDIPROP(prop) ((REFGUID)(prop))
#endif
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.
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
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
Hi,
those macros are just casts to keep the c++/c compiler happy; in assembler you can ignore them, much like MAKEINTRESOURCE etc.
-stormix
those macros are just casts to keep the c++/c compiler happy; in assembler you can ignore them, much like MAKEINTRESOURCE etc.
-stormix