Re: Interfacing with COM objects

new topic     » goto parent     » topic index » view thread      » older message » newer message

Michael wrote:
> 
> 
> Hi all,
> I'm trying to write some eu code to interface with an existing COM object.
> The COM comes from a tv tuner/teletext card. tBrowse has been used on an .ocx
> file
> associated with the card, with the following .ew include being generated:
> 

<include file snipped>

> 
> I've studied hard but can't figure out what needs to be done .... I only
> want to request a page and receive the page as a sequence.
> 

It's hard to say without seeing the documentation (if it exists) for 
the teletype program.  You might try firing it up, and then running some
code where you create a COM object and see what happens.  Your Eu program
might look like this (untested):

include eucom.ew
include teletype.ew

com_err_out(1) -- so you can see any diagnostic messages

integer tt

tt = create_com_object( ActiveTeletextControl_clsid_ix )

object result

result = invoke( tt, {ActiveTeletextControl_m_RequestPage}, {}, {},
    DISPATCH_METHOD )

? result

if wait_key() then end if


Just to see what it does.  I'd also recommend trying other methods and
properties to see what they do.  Sometimes that's the only way to figure
out how stuff works.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu