GTP with ActiveX with Internet Explorer

Post Reply
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

GTP with ActiveX with Internet Explorer

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Patrick,

Please review samples\WebExp.prg

it shows the right way to use it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Patrick Mast
Posts: 244
Joined: Sat Mar 03, 2007 8:42 pm

Post 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
Post Reply