PCS10 / K8047 on Visual Studio VB 2005

Does anyone have a work-around for the K8047E.DLL on Microsoft Visual Studio VB 2005?

I can talk to the unit (i.e. I can make the Record LED turn on and off) but cannot read data through the ReadData routine since it uses an Array Pointer which VB-2005 does not appear to support.

I have tried MS Visual Studio C# 2005 and that has the same problem.

Ah, found it myself.

Dim the array’s as Integer, not Long then pass ByRef and not ByVal

Simple really, if not just a little confusing.

OK. You solved it.
Indeed, confusing all these “As Long” to “As Integer” etc… changes between VB6 and VB2005.