Page 1 of 1

GTP with ActiveX with Internet Explorer

Posted: Wed Oct 10, 2007 2:42 pm
by Patrick Mast
Hello,

When I try to use AxtiveX with Internet Explorer I get a GPF. Please try following code:

Code: Select all

#include "FiveWin.ch"

PROCEDURE Main()

   LOCAL oWnd, oActiveX

   DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"

   oActiveX = TActiveX():New( oWnd, "InternetExplorer.Application" )
   oWnd:oClient = oActiveX
   
   oActiveX:SetProp( "Navigate", "http://www.fivetechsoft.com" )

   ACTIVATE WINDOW oWnd CENTER

RETURN
I compiled it with latest xHarbour from CVS with BCC and/or XCC. I tried on Vista and Windows XP, but on both it GPF's

Can someone please confirm?

Thanks!

Patrick

Posted: Wed Oct 10, 2007 5:07 pm
by Antonio Linares
Patrick,

Please review samples\WebExp.prg

it shows the right way to use it

Posted: Wed Oct 10, 2007 5:17 pm
by Patrick Mast
Antonio Linares wrote:Please review samples\WebExp.prg
it shows the right way to use it
Ok, great. These work OK!

Thank you.

Patrick