Search
-
Sheng Jiang 蒋晟
Microsoft MVP in Visual C , 2004- Forum moderator of the Visual C++ and .Net forums on CSDN Forum moderator of Chinese forums on Microsoft's MSDN forums
Personal Links
Tags
- .NET Framework
- Active Template Library
- ActiveX
- ActiveX Data Objects
- ActiveX Document
- Application programming interface
- ASP.Net
- Assembly language
- bug
- C#
- C++/CLI
- Call stack
- clipboard
- Comment (computer programming)
- Common Language Runtime
- Component Object Model
- Console application
- CSDN
- Deployment
- Document Object Model
- Exception handling
- File Transfer Protocol
- Google Chrome
- Hardware
- Integer (computer science)
- Internet Explorer
- Internet Explorer 6
- Internet Explorer 7
- Internet Explorer 8
- Internet Explorer 9
- Internet Information Services
- Managed C++
- Metadata
- MFC
- Microcontroller
- Microsoft
- Microsoft Answers
- Microsoft Award
- Microsoft Foundation Class Library
- Microsoft Most Valuable Professional
- Microsoft Visual Studio
- Microsoft Windows
- Office Live
- Operating Systems
- Redistributable
- Registry
- Regmon
- Rootkit
- Security Programming
- security zone settings
- Service pack
- Silverlight
- Software development kit
- Standard Template Library
- Taskbar
- Trident (layout engine)
- User agent
- Visual Basic
- Visual C++
- Visual Studio
- Web browser
- WebBrowser Control
- Web Service
- Where is the forum for
- windows 8 Developer Preview
- Windows Explorer
- Windows Forms
- Windows Media Player
- Windows Presentation Foundation
- Windows SDK
- Windows Server 2003
- Windows Shell
- Windows Update
- Windows Vista
- Windows XP
Translate
Blogroll
Tag Archives: Trident (layout engine)
Howto: Ignoring web browser certificate errors in a webbrowser host
The webbrowser queries host services via IServiceProvider implemented on the ActiveX host. One of the services is IHttpSecurity, which can be used to override the certificate problem dialog. Security warning: ignoring security problems can compromise your application. IHttpSecurity is derived from IWindowForBindingUI, … Continue reading
Posted in C#, MFC, Microsoft, Visual Studio, Webbrowser control
Tagged .NET Framework, C#, Internet Explorer, Trident (layout engine), Web browser, Windows Forms
20 Comments
Howto: reset IE security zone settings programmatically
Internet Explorer 7 introduced the IInternetZoneManagerEx2 interface, which has a FixUnsecureSettings method to reset all security zone settings. Like all other IInternetZoneManager* interfaces, you can query this interface from the internet zone manager object: IInternetZoneManagerEx2* pzoneManager=NULL; HRESULT hr=CoCreateInstance(CLSID_InternetZoneManager ,NULL,CLSCTX_INPROC_SERVER,IID_IInternetZoneManagerEx2,(LPVOID*)&pzoneManager); if(hr==S_OK && pzoneManager!=NULL) { … Continue reading
Application crash when forcing IE8 rendering mode in webbrowser host
User stephench is reporting that when setting webbrowser rendering mode to IE8 via FEATURE_BROWSER_EMULATION, the app would crash. The web site crashes IE8 too, but IE8 is able to recover and automatically switch to IE7 mode, while a webbrowser host … Continue reading
How to force popup window to navigate in the same window in a webbrowser control
When clicking on an link that targets a new window, the default behavior of a webbrowser control host application is to open a new window in Internet Explorer. User ben_lai wants to know how to handle the click and navigate … Continue reading
Intercept the download dialog in webbrowser control
User rsd102 looks already find the solution to his question when he posted the question to CSDN, except for one missing piece. The sample he found is for overriding the global download manager, and what he need is a process … Continue reading
Posted in CSDN, enmsdn, Microsoft, Visual C++, Visual Studio
Tagged Active Template Library, CSDN, Trident (layout engine), Visual C++, WebBrowser Control
Leave a comment
Make the webbrowser control styled the same way as the hosting application
User wtx_sonery wants to know whether it is possible to style the webbrowser control with the rest of the application. The answer is yes, you can implement IDocHostUIHandler’s GetHostInfo method and return DOCHOSTUIFLAG_THEME in the host flags. IDocHostUIHandler is already … Continue reading
Posted in Active Template Library, enmsdn, Microsoft, Microsoft Foundation Class Library, Visual C++
Tagged .NET Framework, C#, Internet Explorer, Internet Explorer 6, Microsoft, Microsoft Foundation Class Library, Silverlight, Trident (layout engine), Visual C++, Windows Forms, Windows Presentation Foundation, Windows SDK, Windows XP
Leave a comment
How to change the user agent and download control flags in a webbrowser control host
User vnetvvv wants to know how to change the user agent string in a VB6 webbrowser control. The knowledge base article PRB: WebBrowser Control Clients Share Global Settings provides the necessary code for changing the user agent of the webbrowser … Continue reading
Posted in Active Template Library, enmsdn, Microsoft, Visual C++, Visual Studio
Tagged Document Object Model, Trident (layout engine), User agent
1 Comment
How to disable navigation sound in webbrowser control
User kill211 does not like the click sound when he calls WebBrowser.Navigate. He wonders if there is a way to disable it without modifying HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating, which has effect on other applications. Unfortunately, the API for disabling sound is introduced in … Continue reading
Walkaround for Error : An add-on for this website failed to run. When opening Visual C++’s Add Variable Wizard after IE 8 is installed
Update: it looks like a lot of people are hitting this page by mistake. If you don’t write software for a living then this page is probably not for you. Download: https://jiangsheng.net/Documents/IE8AddZone.zip Prerequisite: Microsoft Visual C++ 2005 SP1 Redistributable Package … Continue reading
Error: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘ICustomDoc’
This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F3F0-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). My first reaction was:”What the hell? HTMLDocumentClass is … Continue reading
Posted in Microsoft
Tagged C#, Component Object Model, Microsoft, Trident (layout engine)
Leave a comment