I don't think I've ever successfully linked a library before. I'm using the Code::Blocks IDE and I have installed the Windows SDK. I've tried going to

Settings -> Compiler & Debugger settings -> search directories tab

and adding "...\Microsoft SDKs\Windows\v7.0\Include", but when I try and compile a simple source code including <Windows.h> for example, I get a whole heap of errors.

If you are writing a basic windows api program with no extra stuff, directx etc linking shouldn't be necessary..

Then how do I utilize the windows sdk headers?

Well it should be something like options->Compiler->dictionaries etc. When you get there just link the header map and the lib maps.
Sorry but my knowledge is rather limited with code::blocks.

//K0ns3rv

What IDE do you use?

Visual C++ mainly or Dev cpp.

//K0ns3rv

Isn't the dev cpp compiler outdated? Also, have you setup the windows api on devcpp? If so, I'll install it right now and try that way.

Dev cpp isn't outdated atm, it will be,but then again i only use it for writing programs with librarys like borland.
You don't have to set anything up when using dev it's all there xD

//K0ns3rv

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.