EuCOM

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

Hi Matt,

While generating wrapper from ocx file, TBrowse utility does not create the last
parameter for reg_com_eventsink() if there are no events present for the ActiveX
control.

I have this non-visible ActiveX control OneWayX.ocx for which
reg_com_eventsink() is created as -

reg_com_eventsink( OneWay_clsid_ix, IOneWayEvents, {} )


resulting in compilation error "4 parameters required".

On manually adding a null string at the end, the compilation goes through.

reg_com_eventsink( OneWay_clsid_ix, IOneWayEvents, {}, {} )


==================

I am having problem with getting a Boolean return value from ocx function, which
is always returned as 65535.
http://www.openeuphoria.org/EUforum/m16124.html

I got the following feedback from the ocx author:

------------------

I'm not sure which language you are using, but 1Way uses a VARIANT_BOOL data
type which is compatible with the .NET system.boolean data type.

This is a 4-byte boolean value. The internal representation is 

hex 00000000 = False
any non-zero value is considered to be True.

Usually True is set as hex FFFFFFFF (or -1 decimal).

You are getting a value of 65535 which is hex FFFF considered as an unsigned
integer. So it looks like your program is only looking at 2 bytes, rather than 4,
and it is taking it to be an unsigned integer rather than a boolean value.

------------------

How can this Boolean value be retrieved?

Regards,
Rad.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu