Jump to content
  • Advertisement
Sign in to follow this  
Sepiantum

Weird error that occurs within the windows SDK

This topic is 2571 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm busy writing an extended windows api, but this bit of code is annoying me like crazy. So somewhere inside a header file, I write:


//Check to see whether to use v6 of comctl32.dll or not
#ifdef COMCTLV6
#include <CommCtrl.h>
#pragma comment(lib, "comctl32.lib")
#pragma comment(linker,"\"/manifestdependency:type='AMD64' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif


And I define COMCTLV6 somewhere else. Sadly, I get these errors:


1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\CommCtrl.h(26): error C2059: syntax error : 'return'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: 'CALLBACK' : undeclared identifier
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): fatal error C1903: unable to recover from previous error(s); stopping compilation


It seems as if somehow Microsoft went wrong with their Windows SDK. Do I need to redownload it? Do I edit my includes somehow? What do I do? Thanks to all that help me.

BTW: I'm using Windows 7 64-bit.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!