Have you missed some brackets off somewhere? As pArray isn't an array, its
just an integer.

On Tue, Dec 21, 2010 at 6:10 AM, Jeff Steinkamp (N7YG) <
[email protected]> wrote:

>   I am using a ActiveX library that I believe was compiled with VB6.  I am
> having a devil of a time with one particular method that requests an array
> of integers to be passed by reference.
> Here is the declaration
>
> Public Overridable Function ReadFFT(ByRef pArray As Integer, ByVal wCount
> As Short) As Short
>
> in theory I should be able to do the following:
>
> Dim FFT(1023) as integer
>
> ReadFFT(FFT(0),1024)
>
> But it croaks (with a CLR error) and doesn’t even make it to the exception
> handler I have in that particular section of code.
>
> So, any idea how to go about calling this?
>
> Jeff K. Steinkamp N7YG
> Tucson, AZ
> Jeff K. Steinkamp N7YG
> Tucson, AZ
> SCUD Missile Coordinates:
> N032-13-55.02 W110-55-52.79
> Registered Linux User: 420428
> ------------------------------------------------------
>
> A efficient bureaucracy is the greatest threat to liberty.
>

Reply via email to