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, 7:21 AM   #1
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
windows.h

Hello, I recently started C++ and it everything I have tried to compile will not work.... it says it cannot find it or whatever..... so, is there anywhere i can download this header file so that i can finally compile things again :p

Cheers,

moleman
moleman is offline   Reply With Quote
Old May 21st, 2006, 7:27 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Install the Platform SDK and remember to put all the directories in the right search paths for your compiler.
__________________
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, 7:37 AM   #3
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
Platform SDK?? Erm... I have VC++ 7?
moleman is offline   Reply With Quote
Old May 21st, 2006, 7:40 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You'll need Microsoft's Platform SDK. Clicky.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 21st, 2006, 7:40 AM   #5
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5 lectricpharaoh will become famous soon enough
What compiler are you using? For some, you need to set up environment variables (generally PATH, LIB, and INCLUDE) so that your system can find the associated files. Of course, as DaWei mentions, you need to in fact have the files (though most Windows compilers will come with all the basic headers you need).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   Reply With Quote
Old May 21st, 2006, 8:07 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The new Express MS C++ compilers don't come with windows.h. Some of the files referred to by windows.h are also missing. The PSDK fixed that for me. No guarantee that future versions will continue to do so.
__________________
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, 8:11 AM   #7
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by DaWei
The new Express MS C++ compilers don't come with windows.h. Some of the files referred to by windows.h are also missing. The PSDK fixed that for me. No guarantee that future versions will continue to do so.
Ugh, remind me to toss a pie at Bill Gates if I ever see the guy... or better yet, kick him in the plums.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   Reply With Quote
Old May 21st, 2006, 8:12 AM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Remind me to thank him. The Win32 API is evil, I tells ya. I'm waiting for the day when .NET will natively implement everything.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 21st, 2006, 1:31 PM   #9
moleman
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 moleman is on a distinguished road
OK... I downloaded and installed the PSDK.... now what? I feel such a noob lol :p

I am using MS VC++ 2005 EE
moleman is offline   Reply With Quote
Old May 21st, 2006, 1:35 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Set your compiler options to add the PSDK paths to the paths it searches for include and library files. If that doesn't ring a bell, click Help and ask about it. If that doesn't help, post back and I'll go look up the appropriate menus, etc.
__________________
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 4:15 AM.

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