Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Cannot open include file: 'dxdiag.h'

Author
Message
Max P
9
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 26th Jul 2011 21:12 Edited at: 26th Jul 2011 21:15
Hi all,
I recently started with creating dll's, I managed to create a few functions for calculating distances etc. Now I wanted to try using strings, accoarding to the help files I need the globstruct.h file for this, wich I found, but when I compile it runs into an error: Cannot open include file: 'dxdiag.h'.

I have no clue on what to do now, so I was hoping someone has an answer for me.

edit
I'm using Microsoft Visual C++ 2010 Express
IanM
Retired Moderator
17
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Jul 2011 21:59
You need to download and install the October 2006 DirectX SDK from microsoft.

A (not very good) alternative, is to replace those includes with '#include <wtypes.h>', and to change all occurrences of LPDIRECT3DTEXTURE9 and LPDIRECT3DSURFACE9 with LPVOID, but then you won't be able to code any of your own DirectX stuff in your plug-ins.

Max P
9
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 26th Jul 2011 22:15
Thanks, I knew it was something simple, downloading now

Login to post a reply

Server time is: 2019-10-16 22:36:12
Your offset time is: 2019-10-16 22:36:12