DirectX 8 - UINT_PTR compile error
I''m having a little problem compiling ANY DirectX 8 code. None of the examples from the SDK will compile. I get errors about UINT_PTR .. I''m using VC++ 5.0.. Before upgrading to DX8, I never had problems. Do I need VC++ 6.0? or can I bypass it.
Thanks for the help,
--Shaggy
If they are errors about it being undefined, type:
#ifndef UINT_PTR
typedef unsigned int* UINT_PTR;
#endif
Place this before the files that contain UINT_PTR are used.
.travois.
Edited by - tv on January 26, 2001 10:16:34 PM
#ifndef UINT_PTR
typedef unsigned int* UINT_PTR;
#endif
Place this before the files that contain UINT_PTR are used.
.travois.
Edited by - tv on January 26, 2001 10:16:34 PM
Thanks travois.. that worked great.. any ideas why the errors would point at DINPUT.H. Its fresh out of the DX8 sdk.. regardless.. thanks for the fix.
--Shaggy
--Shaggy
I use Borland compilers and headers, so I do not know if Microsoft took their classic approach of standardizing unnecisary things. (In this case declaring UINT_PTR as an unsigned integer pointer.) Perhaps they were dying for a reason to release an upgrade for VC++, and I think you found it.
Well, glad that it works, and hope that this bit of knowledge can be given to another someday...
.travois.
Well, glad that it works, and hope that this bit of knowledge can be given to another someday...
.travois.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement