Archived

This topic is now archived and is closed to further replies.

Uncaged

DirectX 8 - UINT_PTR compile error

Recommended Posts

Uncaged    122
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

Share this post


Link to post
Share on other sites
TV    122
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

Share this post


Link to post
Share on other sites
Uncaged    122
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

Share this post


Link to post
Share on other sites
TV    122
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.

Share this post


Link to post
Share on other sites