-
April 29th, 2013, 09:15 AM
#1
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
-
April 29th, 2013, 09:40 AM
#2
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?
Victor Nijegorodov
-
April 29th, 2013, 09:58 AM
#3
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.
-
April 29th, 2013, 10:36 AM
#4
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>?
Victor Nijegorodov
-
April 29th, 2013, 07:02 PM
#5
Re: error include "commctrl.h" and prsht.h
What version of Visual C++ are you using?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|