How to get Windows.h and associated filesI

Nangoner

New member
Local time
6:21 AM
Messages
4
Location
Chestertown, MD
I am trying to find the header file Windows.h and the associated header files in order to compile a piece of code I am developing. Can anyone help. I've tried downloading Visual Studio 2008 SDK as recommended elsewhere but no joy.
 

My Computer My Computer

At a glance

Windows 7Intel dual core 2 Ghz4 GigDell Std
Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7
CPU
Intel dual core 2 Ghz
Motherboard
Dell
Memory
4 Gig
Graphics Card(s)
Dell Std
Sound Card
Dell Std
Monitor(s) Displays
1
Screen Resolution
1248x756 ? HD
Hard Drives
Seagate 500G
Mouse
pad
Internet Speed
Cable
Please complete/update your pc specs, so we can help you. Also Maryland is not an Operating System.:confused:
 

My Computer My Computer

At a glance

Dual-boot: Windows 7 HP 32-bit SP1 & Windows ...AMD Phenom X4 9550 2.8Ghz4.0GB RAM256MB On-board ATI Radeon X1200 Series
Computer Manufacturer/Model Number
Advent
OS
Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
CPU
AMD Phenom X4 9550 2.8Ghz
Motherboard
FOXCONN A6VMX (Socket 940)
Memory
4.0GB RAM
Graphics Card(s)
256MB On-board ATI Radeon X1200 Series
Sound Card
UnKnown
Monitor(s) Displays
19" TFT Mointor
Screen Resolution
1400 by 900
Hard Drives
500GB Western Digital WDC
Keyboard
HP Keyboard
Internet Speed
Dial-up via Mobile phone (Three)
Other Info
80GB External Hard-drive.

Also I have an old Windows XP Laptop for backup/occasional use etc.
"Please complete/update your pc specs, so we can help you.:

I posted my system specs.
 

My Computer My Computer

At a glance

Windows 7Intel dual core 2 Ghz4 GigDell Std
Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7
CPU
Intel dual core 2 Ghz
Motherboard
Dell
Memory
4 Gig
Graphics Card(s)
Dell Std
Sound Card
Dell Std
Monitor(s) Displays
1
Screen Resolution
1248x756 ? HD
Hard Drives
Seagate 500G
Mouse
pad
Internet Speed
Cable
Quite strange that whatever C/C++ IDE you're using for developing doesn't actually include those. Any Windows development environment must include this and all other headers it includes for any kind of programming.

Does a simple
Code:
#include <windows.h>
throws any compilation error?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
windows.h must be there

I tried compilation of

#include <windows.h>

with no comilation errors. That's good, but an indexed search of my computer cannot find windows.h or any of it's related header files. Can anyone explain why that's the case.
 

My Computer My Computer

At a glance

Windows 7Intel dual core 2 Ghz4 GigDell Std
Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7
CPU
Intel dual core 2 Ghz
Motherboard
Dell
Memory
4 Gig
Graphics Card(s)
Dell Std
Sound Card
Dell Std
Monitor(s) Displays
1
Screen Resolution
1248x756 ? HD
Hard Drives
Seagate 500G
Mouse
pad
Internet Speed
Cable
If it compiles correctly, the file is somewhere in the computer, but it appears that the search cannot find it. I would not trus too much the built in Win7 file search, as that index seems to get outdated quite easily and misses many files. Just use a more serios search tool and you'll find it. Most likely, those header files will be located in the program folder of the IDE.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Thanks, I'll look for a more serious search engine for my PC,
 

My Computer My Computer

At a glance

Windows 7Intel dual core 2 Ghz4 GigDell Std
Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7
CPU
Intel dual core 2 Ghz
Motherboard
Dell
Memory
4 Gig
Graphics Card(s)
Dell Std
Sound Card
Dell Std
Monitor(s) Displays
1
Screen Resolution
1248x756 ? HD
Hard Drives
Seagate 500G
Mouse
pad
Internet Speed
Cable
Back
Top