handwolf@126.com
-
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
-
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
-
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?
-
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?
-
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
-
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
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.
-
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
You may need to change the values of the
#define
valuesWINVER
,_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 0x0600These 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#include
d any of the system header files.
Software Zen:
delete this;