error include "commctrl.h" and prsht.h
I am new to vc++, I am developing an application using MFC. I am getting an error in commctrl and prsht header files.
these are the errors,
c:\program files\microsoft sdks\windows\v6.0a\include\commctrl.h(19) : error C2059: syntax error : 'return'
1>Note: including file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\prsht.h
1>Note: including file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\pshpack4.h
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation
please help me to solve this. thanks in advance:)
Re: error include "commctrl.h" and prsht.h
What type of application did you create?
How did you create it? Did you use App Wizard?
Re: error include "commctrl.h" and prsht.h
i used the app wizard to create a dialog based app. app interfaces with matlab to plot graph. Now i am getting the above mentioned error. i haven't included the commctrl.h and prsht.h files in the project.
Re: error include "commctrl.h" and prsht.h
WHat IDE are you using?
Do you use precompiled header files? If not then did you #include <windows.h>?
Re: error include "commctrl.h" and prsht.h
What version of Visual C++ are you using?