TCppWebBrowser를 그냥 사용하면 인터넷 익스플로러 7 모듈로 돌아가네요.
(그래서 IE 8 이상에서만 지원하는 자바스크립트가 오류를 내던 것)
인터넷 익스플로러 8 이나 9 모듈로 돌아가게 하려면,
레지스트리를 등록해줘야 합니다.
아래 주소를 참고하세요 -_- 이것 때문에 고생했네요 ㅋㅋ
http://goo.gl/iyqCI
32 bit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
Value Key: yourapplication.exe
64 bit:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
Value Key: yourapplication.exe
The value to set this key to is (taken from MSDN here) as decimal values:
9999 (0x270F)
Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.
9000 (0x2328)
Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
8888 (0x22B8)
Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.
8000 (0x1F40)
Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode.
7000 (0x1B58)
Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode.
아제나 님이 쓰신 글 :
: TCppWebBrowser는 인터넷 익스플로러를 불러다 쓰는 것으로 알고 있는데...
:
: 인터넷 익스플로러에서 잘 뜨는 사이트들이 TCppWebBrowser에서 로딩하면 자바스크립트 오류창이 발생하는군요.
:
: OleVariant vURL = "
http://acid3.acidtests.org";
: OleVariant vFrame = "_blank";
:
: CppWebBrowser1->Navigate2(vURL,vFrame,0,0,0);
:
: 이렇게 간단하게 코드를 짜서 로딩을 해보면,
: 자바스크립트 관련 오류가 발생하면서
: 사이트 하단에 'Scripting must be enabled to use this test.'라고 뜹니다.
:
: 구글링을 아무리해도 도저히 이유를 모르겠네요.
: IE9 설치된 시스템이라서 그런가해서 IE8 환경에서 해봐도 마찬가지네요.
: XP에서 해봐도 마찬가지고요. (고로 UAC 관련 문제는 아닌 듯)
:
: 정말 골아프네요. 몇 시간째 고생중이예요 ㅎㅎ