Skip to main content
gamedev.net
🔒 Locked

Argh! objbase.h

Started by TecToc Jan 28, 2006 at 4:33 PM 5 replies 900+ views
Original Post
TecToc
TecToc
I'm just starting DirectX. Downloaded DirectX, the Platform SDK, and VC++ Express. I went into Express, linked to the library and the includes, and tried to compile the CreateDevice sample program that comes with DirectX. But I keep getting the same, single error. c:\dx90sdk\include\d3d9.h(33) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory
Alan Kemp
Alan Kemp
objbase.h is part of the platform sdk. Your visual studio express install probably just doesn't know where to find the files. Follow these instructions so set up your paths and everything should work.

Alan
"There will come a time when you believe everything is finished. That will be the beginning." -Louis L'Amour
TecToc
TecToc
Thanks. I just linked straight to the entire SDK folder, and when I checked, I couldn't find the individual folders that I'm supposed to link. Going to re-download again.

When they give you a choice of :

PSDK-amd64.exe
PSDK-ia64.exe
PSDK-x86.exe

, how do you know which one to pick for your system?
Roboguy
Roboguy
Quote:
Original post by TecToc
Thanks. I just linked straight to the entire SDK folder, and when I checked, I couldn't find the individual folders that I'm supposed to link. Going to re-download again.

When they give you a choice of :

PSDK-amd64.exe
PSDK-ia64.exe
PSDK-x86.exe

, how do you know which one to pick for your system?


Well, if you're on a 64-bit AMD, pick the first one. If you're on a 64-bit IA machine, pick the second. If you're on a 32-bit x86, pick the third.
TecToc
TecToc
Thanks. I downloaded the amd64 and tried to install, and now it says "not a valid Win32 system". Sorry if it seems like I'm asking a lot of questions, but I was trying to figure out all of this today. It's a lot of crap to download and you have to make sure it's all connected right, which I thought I did, until I decided to compile.
jollyjeffers
jollyjeffers
Are you actually running a 64bit OS for your AMD64? I don't own one myself, but my understanding is that without a 64bit build of Windows the CPU just appears as a turbo-charged 32bit CPU...

Provided I'm correct on that, go grab the x86/32bit PSDK. I don't think you wanted the IA64 one - thats for Intel's 64bit chips [smile]

Quote:
This stuff is really getting on my nerves. I just learned to code in C++, and DirectX and Windows API is like an entirely different language, and I can't even get the stuff to work.
Might I suggest that you don't try and jump ahead of yourself? The PSDK/DXSDK are fairly complex beasts - trying to learn them when you're fairly new to a language might take some time.

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.