Skip to main content
GameDev.net gamedev.net
🔒 Locked

Server return code inside a web browser

Started by xycsoscyx Jan 31, 2006 at 4:13 PM 1 replies 600+ views
Original Post
xycsoscyx
xycsoscyx
I am implementing an embedded web browser, but I want to have a custom handler if the page is not found. Is there any way to check the return value from the server when using the IWebBrowser2 interface? I want to be able to respond from a 404 with my own page, instead of the page that the server returns. Unfortunately, it still returns a page, and the status of IWebBrowser2 gets set to completed. I can't find any information on the return value from the server, though. Any one know more about the interfaces? Is it even possible to get the server return code from the interfaces?
crizo
crizo
You can hook the DWebBrowserEvents2::NavigateError Event

Chris.
CosmicBee - Software With Buzz
xycsoscyx
xycsoscyx
How do I set my custom DWebBrowserEvents2 class in C++? I can't seem to find any functions for setting a pointer to the event handler from my IWebBrowser2 class?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.