PDA

View Full Version : Executing code from a web page within a C++ program


Raptisoft
10-28-2006, 01:50 PM
Hi Gansta Rappers and Bad Mofos,

I have a quick question... okay, I want to display a web page within my program. Easy enough-- I just throw up a web browser control and load whatever HTML into it.

BUT!!!!

What I want to do is make a link within that web page execute some code in my program. Is this possible? Can anyone give me a tip or a hint on how?

Thanks a bazillion, byte-buddies!

John

jankoM
10-28-2006, 02:22 PM
I think DWebBrowserEvents::BeforeNavigate is what you are asking for
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/dwebbrowserevents2/beforenavigate2.asp
http://www.iol.ie/~locka/mozilla/control.htm