FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC ActiveX support!
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX support!
Posted: Wed Apr 11, 2007 06:15 AM

ActiveX support is already working :-)

Now we are building some tests and we will publish a new build asap

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 42
Joined: Wed Oct 26, 2005 01:20 PM
ActiveX support!
Posted: Tue Apr 17, 2007 07:11 PM

Greetings Antonio,

This is great news!! I look forward to seeing some examples of to implement ActiveX.

Bill Simmeth

Merchant Software Corp

Marshall, Virginia USA
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX support!
Posted: Wed Apr 18, 2007 02:56 PM
Bill,

We use the same syntax as in FWH. Quite simple :-) :
#include "FWCE.ch"

function Main()

   local oWnd, oActiveX
   local cEvents := ""

   DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"

   oActiveX = TActiveX():New( oWnd, "WMPlayer.OCX" )

   oWnd:oClient = oActiveX // To fill the entire window surface
   oActiveX:SetProp( "url", CurDir() + "\clapping.wav" )

   oActiveX:bOnEvent = { | event, aParams, pParams | cEvents += EventInfo( event, aParams, pParams, oActiveX ) }

   ACTIVATE WINDOW oWnd ;
      VALID ( MsgInfo( cEvents ), .t. )

return nil

function EventInfo( event, aParams, pParams, oActiveX )

   local cMsg := "Event: " + cValToChar( event ) + CRLF
   local n
   
   cMsg += "Params: " + CRLF
   
   for n = 1 to Len( aParams )
      cMsg += cValToChar( aParams[ n ] ) + CRLF
   next
   
return cMsg + CRLF
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: ActiveX support!
Posted: Thu Oct 06, 2011 01:58 AM

Dear Antonio,

I am getting an illegal operation trying to perform the following ActiveX call on Win CE 4. What am I doing wrong?

//--------------------------------------------------------------------
DEFINE WINDOW oWnd2 TITLE Ptitle + " - Transmit"

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

oWnd2:oClient = oActiveX

oActiveX:SetProp( "url", , Pdd + cPost + ".HTM" )

ACTIVATE WINDOW oWnd2

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com

Continue the discussion