![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
Platform SDK??
Erm... I have VC++ 7? |
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
You'll need Microsoft's Platform SDK. Clicky.
|
|
|
|
|
|
#5 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#7 | |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5
![]() |
Quote:
__________________
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 |
|
|
|
|
|
|
#8 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
|
|
#9 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
OK... I downloaded and installed the PSDK.... now what? I feel such a noob lol :p
I am using MS VC++ 2005 EE |
|
|
|
|
|
#10 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|