FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ActiveX & Shell.Explorer
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
ActiveX & Shell.Explorer
Posted: Wed Jul 22, 2009 04:39 PM

All,

I am using activex to show a window in explorer. I create the object with:

oActiveX = TActiveX():New( oWndHP, "Shell.Explorer.2" )

When the user closes the window I call a function in the VALID clause, passing the activex object to get the document contents. In this function I use:

oDoc := TOleAuto():New( oActiveX:GetProp("document") )

This has worked fine on several of our users computers but today I have a user gets the following error on the above line.

Error description: Error Shell.Explorer.2/0 S_OK: GETPROP
Args:
[ 1] = C document

This user has XP installed with 6.0 of IE (same as me). He did have Firefox set as his default browser but I had him change that. Anyone have any idea why this isn't working?

What is the difference between shell.explorer and shell.explorer.2?

Thanks,
Randal

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: ActiveX & Shell.Explorer
Posted: Wed Jul 22, 2009 08:49 PM

Randal,

With the modified Class TActiveX that we published in these forums and that has been included in FWH 9.06 you can simply do:

oActiveX = TActiveX():New( oWndHP, "Shell.Explorer.2" )

oDoc := oActiveX:document

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion