FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TActiveX 2 ToleAuto
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
TActiveX 2 ToleAuto
Posted: Sat May 22, 2010 07:01 PM

oObj:=TActiveX():New( oWnd, ProgID, 0, 0, 0, 0 )
oObj:AboutBox()

it's work fine.

now i'm trying use this:

oObj:=ToleAuto():New( ProgID )

erro here -> oObj:AboutBox()

i try too
oObj:Invoke("AboutBox")
too erro

i try too
OleInvoke( oObj:hObj, "AboutBox")
and
Oleinvoke( oObj, "AboutBox" )

what did i wrong ?

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: TActiveX 2 ToleAuto
Posted: Sat May 22, 2010 09:12 PM

Try passing the window object:

oObj:=ToleAuto():New( ProgID )

Change to this:

oObj:=ToleAuto():New( oWnd, ProgID )

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: TActiveX 2 ToleAuto
Posted: Sat May 22, 2010 09:43 PM

No work.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: TActiveX 2 ToleAuto
Posted: Sat May 22, 2010 10:00 PM

Lailton,

An ActiveX and and OleAuto are not the same thing.

Lets say that an ActiveX is an OleAuto with a visual interface :-) (thats not exactly but gives an idea)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: TActiveX 2 ToleAuto
Posted: Sun May 23, 2010 03:27 AM

Antonio,

How know when a PROGID is a ActiveX and when is a COM ?
isActiveX(ProgID) return true.

so think that it's wrong.

in wXP work fine, only a vista and seven that give-me erro. :)

Continue the discussion