Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. handwolf@126.com

handwolf@126.com

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    superhandwolf
    wrote on last edited by
    #1

    A vc project using IHTMLDocument3 interface: #include //... class CHTMLDocument2 : public CObject { //... IHTMLDocument3* pHTMLDocument3; }; When I building this project, report error messages as follows: error C2143: syntax error : missing ';' before '*' error C2501: 'IHTMLDocument3' : missing storage-class or type specifiers And I find that there isn't class IHTMLDocument3 in the file of my compuer. Is there anyone tell me how to upgrade and mshtml.dll to use IHTMLDocument3 interface? Or other way to build this project successfully? Thanks :) Study! Study! Study! Hard! Hard! Hard! -- modified at 5:06 Monday 5th September, 2005

    T G 2 Replies Last reply
    0
    • S superhandwolf

      A vc project using IHTMLDocument3 interface: #include //... class CHTMLDocument2 : public CObject { //... IHTMLDocument3* pHTMLDocument3; }; When I building this project, report error messages as follows: error C2143: syntax error : missing ';' before '*' error C2501: 'IHTMLDocument3' : missing storage-class or type specifiers And I find that there isn't class IHTMLDocument3 in the file of my compuer. Is there anyone tell me how to upgrade and mshtml.dll to use IHTMLDocument3 interface? Or other way to build this project successfully? Thanks :) Study! Study! Study! Hard! Hard! Hard! -- modified at 5:06 Monday 5th September, 2005

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      it should[^] did you installed the SDK ?


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      H 1 Reply Last reply
      0
      • T toxcct

        it should[^] did you installed the SDK ?


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        H Offline
        H Offline
        handwolf82
        wrote on last edited by
        #3

        I have installed the SDK, and add the path of SDK to Tools-->option-->Directories include files, then when building, another error occurs: error C2601: 'LONG_PTR' identifier ... the 'LONG_PTR' appears in of SDK. How can I resolve the problem?

        T 1 Reply Last reply
        0
        • H handwolf82

          I have installed the SDK, and add the path of SDK to Tools-->option-->Directories include files, then when building, another error occurs: error C2601: 'LONG_PTR' identifier ... the 'LONG_PTR' appears in of SDK. How can I resolve the problem?

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          on what line does it crash within your code ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          S 1 Reply Last reply
          0
          • T toxcct

            on what line does it crash within your code ?


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            S Offline
            S Offline
            superhandwolf
            wrote on last edited by
            #5

            the error messages are partly listed below: c:\program files\microsoft platform sdk\include\mshtml.h(40510) : error C2061: syntax error : identifier 'LONG_PTR' c:\program files\microsoft platform sdk\include\mshtml.h(40513) : error C2061: syntax error : identifier 'LONG_PTR' c:\program files\microsoft platform sdk\include\mshtml.h(40516) : error C2061: syntax error : identifier 'LONG_PTR' ... The corresponding codes in the file mshtml.h is listed below: virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeCompositionChange( /* [out][retval] */ LONG_PTR *p) = 0; virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeNotifyCommand( /* [out][retval] */ LONG_PTR *p) = 0; virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeNotifyData( /* [out][retval] */ LONG_PTR *p) = 0; How to resolve this problem? Study! Study! Study! Hard! Hard! Hard! -- modified at 7:30 Monday 5th September, 2005

            S 1 Reply Last reply
            0
            • S superhandwolf

              the error messages are partly listed below: c:\program files\microsoft platform sdk\include\mshtml.h(40510) : error C2061: syntax error : identifier 'LONG_PTR' c:\program files\microsoft platform sdk\include\mshtml.h(40513) : error C2061: syntax error : identifier 'LONG_PTR' c:\program files\microsoft platform sdk\include\mshtml.h(40516) : error C2061: syntax error : identifier 'LONG_PTR' ... The corresponding codes in the file mshtml.h is listed below: virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeCompositionChange( /* [out][retval] */ LONG_PTR *p) = 0; virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeNotifyCommand( /* [out][retval] */ LONG_PTR *p) = 0; virtual /* [nonbrowsable][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_imeNotifyData( /* [out][retval] */ LONG_PTR *p) = 0; How to resolve this problem? Study! Study! Study! Hard! Hard! Hard! -- modified at 7:30 Monday 5th September, 2005

              S Offline
              S Offline
              superhandwolf
              wrote on last edited by
              #6

              I have building this project successfully in the Visual C++ 7.0. But I still would like to know how to fix this problem in Visual C++ 6.0.

              1 Reply Last reply
              0
              • S superhandwolf

                A vc project using IHTMLDocument3 interface: #include //... class CHTMLDocument2 : public CObject { //... IHTMLDocument3* pHTMLDocument3; }; When I building this project, report error messages as follows: error C2143: syntax error : missing ';' before '*' error C2501: 'IHTMLDocument3' : missing storage-class or type specifiers And I find that there isn't class IHTMLDocument3 in the file of my compuer. Is there anyone tell me how to upgrade and mshtml.dll to use IHTMLDocument3 interface? Or other way to build this project successfully? Thanks :) Study! Study! Study! Hard! Hard! Hard! -- modified at 5:06 Monday 5th September, 2005

                G Offline
                G Offline
                Gary R Wheeler
                wrote on last edited by
                #7

                You may need to change the values of the #define values WINVER, _WIN32_WINNT, and _WIN32_IE. These values control, at compile time, the availability of certain declarations. I typically use:

                #define WINVER 0x0501
                #define _WIN32_WINNT 0x0501
                #define _WIN32_IE 0x0600

                These specify Windows XP and Internet Explorer 6.0 and greater. The best place to set these is at the top of stdafx.h, before you have #included any of the system header files.


                Software Zen: delete this;

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups