How to call IMGDLL DLL with pointer to array

I am trying to use the DLL IMGDLL to retrieve a histogram for an image. The function that I am trying to call requires a pointer to an array that it will fill with data. The array is to be 256 elements of long integers. How do I pass a pointer to an array???
Who is Participating?
Pass the location of the first element of the array.
Depending on the DLL use

Dim a(255) As Integer
and pass a(0) ByRef
or VarPtr(a(0)) ByVal
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.