[DUG] *sigh* ActiveX wrapper
Phil Middlemiss
phil at tumonz.co.nz
Tue Oct 10 11:38:24 NZDT 2006
No. When the values are received by the ActiveX wrapper they are just
Singles. The automatically generated wrapper code then passes those
singles received by the underlying Delphi Component to the typelibrary
dispinterface event - at which point they are nonsense values.
Todd Martin wrote:
> Are you reading a pointer to the value rather than the value itself?
>
> ----- Original Message ----- From: "Phil Middlemiss" <phil at tumonz.co.nz>
> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> Sent: Tuesday, October 10, 2006 10:53 AM
> Subject: [DUG] *sigh* ActiveX wrapper
>
>
>> Hi all,
>>
>> I have a component which I have wrapped up as an ActiveX object. One of
>> the events on the component has 4 parameters of type Single. For some
>> reason the values that are surfacing when the ActiveX component is used,
>> are not the same as the values that are being passed on in that event.
>>
>> I put a message in the TActiveXWrapper descendant that receives the
>> Delphi Control's event and passes it on to the ActiveX dispinterface
>> (generated automatigically by the type library) and the value is
>> correctly received in the wrapper - it must be somewhere in the COM
>> handling of the parameters that they get messed up. The final values are
>> not even jumbled - they are just completely different values.
>>
>> Any ideas?
>>
>> Cheers,
>> Phil.
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
>> _______________________________________________
>> Delphi mailing list
>> Delphi at ns3.123.co.nz
>> http://ns3.123.co.nz/mailman/listinfo/delphi
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.407 / Virus Database: 268.13.1/466 - Release Date: 7/10/2006
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20061010/41080bc6/phil.vcf
More information about the Delphi
mailing list