Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 21st, 2006, 1:36 PM   #11
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
Cheers, I'll rummage around a bit, see if i can dig anything up
moleman is offline   Reply With Quote
Old May 21st, 2006, 1:42 PM   #12
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
I need help.

[edit] If you right click on the source file in the solution explorer and go to properties it brings up a window with some of those trees. Go C/C++ -> General and it comes up with some things including "Additional dependancies" or womething along those lines... anyway, I click on that and add in the Include folder from the "Microsoft Platform SDK for Windows Server 2003 R2" folder in Program Files..... wait..... I haven't installed the wrong PSDK have I?? (I have an AMD 64).
moleman is offline   Reply With Quote
Old May 21st, 2006, 3:15 PM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Get to the menu shown from Tools/Options and pick this tab. As you can see, there are directories listed for the various types of files (include, library, executable, etc.). Fix it up there.

Your AMD runs 32-bit chit, right?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 21st, 2006, 3:23 PM   #14
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
as 32-bit programs like windows? of course

Cheers for the help! mucho aprecciato.

I did as you said.... I am supposed to be linking it to the Include folder?

------ Build started: Project: BasicDirect3DApp, Configuration: Release Win32 ------
Compiling...
BasicDirect3DApp.cpp
.\BasicDirect3DApp.cpp(5) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\moleman\My Documents\C++\Visual Studio 2005\Learn DX\Chapter05\BasicDirect3DApp\Release\BuildLog.htm"
BasicDirect3DApp - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It don't seem to like that header file...
moleman is offline   Reply With Quote
Old May 21st, 2006, 3:57 PM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I don't know where your stuff installed, of course, but here's mine:
My include file directories:
    $(VCInstallDir)include
    $(VCInstallDir)PlatformSDK\include\prerelease
    $(VCInstallDir)PlatformSDK\include
    $(FrameworkSDKDir)include
    C:\Program Files\Microsoft Platform SDK\include

library file directories:
    $(VCInstallDir)lib
    $(VCInstallDir)PlatformSDK\lib\prerelease
    $(VCInstallDir)PlatformSDK\lib
    $(FrameworkSDKDir)lib
    $(VSInstallDir)
    $(VSInstallDir)lib
    C:\Program Files\Microsoft Platform SDK\lib
Windows.h is in my C:\Program Files\Microsoft Platform SDK\include directory, for one. Because of older compilers, I have it a few places.

You don't show your code. Make sure you have <windows.h>, not "windows.h", unless you move it to a local project directory. You will find that a lot of code you snag from elsewhere is going to have to be tweaked. Pain in the ass, but there you have it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC