Re: ActiveX Controls (ocx) in win32lib
- Posted by Rad <radhx at redif?ma?l.com> Aug 23, 2007
- 569 views
Rad wrote: > > I am having difficulties calling a function from ocx with a "string" input > parameter and boolean return value. > This is the feedback I got from the author of ActiveX Control: ====================================== 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. =============================================== Regards, Rad.