Calling ActiveX from Delphi

From: Txema (t.soroa_at_arfe.com)
Date: 11/30/04


Date: 30 Nov 2004 08:22:29 -0800

Hello,

I am calling an ActiveX function from Delphi. This function has an
output parameter declared as a *Variant.
The fact is that when I call this function, I use a ^Variant that
points to an array of bytes (what I really want is to read a sequence
of bytes coming out of a hardware device).
When I read the result, I have the read bytes positioned in elements
9+n*16, n=(0..N).
Does somebody know how to do it not to have to declare an auxiliary
array 16 times bigger than what I really want to read?

Znks!



Relevant Pages

  • Re: ReDim not working as expected. Array expert needed.
    ... MsgBox TypeName) ' Type Variant() ... examples of how array dimensions work in VBA. ... Sub ArrayStudies14() ... Dim MyArray As Variant ' Declare nonarray variant. ...
    (microsoft.public.excel.programming)
  • Re: C++ Conversion functions for pointers
    ... I know I can create an array of Variant pointers and assign to these ... >> But the problem I am having is converting an int pointer to a Variant ...
    (alt.comp.lang.learn.c-cpp)
  • Re: ReDim not working as expected. Array expert needed.
    ... "I've seen people use a variant to contain the values ... array in the first place, the damage is done and it's not likely to get ... I next told you not to redim it. ... Dim MyArray As Variant ' Declare nonarray variant. ...
    (microsoft.public.excel.programming)
  • Re: Need Help With Arrays and Passing Arguments
    ... array definition to illustrate without really thinking about it. ... Dim myArray() As Variant ... > Sub CallTest1() ...
    (microsoft.public.word.vba.general)
  • Re: How do I set up a 6 day work week in Excel?
    ... With your workbook opened and active, press Alt+F11 - this opens VBA Editor. ... Dim arrayH As Variant, arrayW As Variant ... ' or not an array or cell range with numeric values, ... ReDim arrayH) As Variant ...
    (microsoft.public.excel.worksheet.functions)