Scribble Master
Scribble Master

Reputation: 1130

Where are the C header files in Windows?

I'm new to Windows development, having messed around in Linux for a while. I need to access console functions and am having trouble getting a comprehensive list of console text attributes off the web. I would like to read wincon.h and windows.h to get the info, but I can't figure out how to get at them. Help please!

Upvotes: 22

Views: 46723

Answers (4)

Jerry Coffin
Jerry Coffin

Reputation: 490048

They're normally stored along with the other SDK headers. Assuming you're using Visual Studio, the easy to look at them is to create a file, add a line to #include the file you care about, right click it, and click on the open document <whatever.h> line in the pop-up menu.

Upvotes: 13

Jacob
Jacob

Reputation: 3686

I would try looking up the console function listing on MSDN

Upvotes: 0

Billy ONeal
Billy ONeal

Reputation: 106530

Windows does not come with these by default. If you are looking for them, you need to install the Windows SDK and dig around in the %PROGRAMFILES%\Microsoft SDKs\Windows directory.

Upvotes: 17

Timo Geusch
Timo Geusch

Reputation: 24341

You'll have to install the Windows SDK to get the header files. Windows doesn't come with the software development tools out of the box and depending on which compiler you're using, they might not come with the compiler either.

Upvotes: 1

Related Questions