CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2013
    Posts
    2

    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

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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

  3. #3
    Join Date
    Apr 2013
    Posts
    2

    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.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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
  •  





Click Here to Expand Forum to Full Width

Featured