I have a working VC++2010 app that needs to be ported to VB2010. But I seem to be having difficulty passing a pointer to an array of structures to a DLL. I cannot modify the DLL.

working VC++ reference...

Code:
// pasted from header
ABDNAPI int DNET_EnumPorts
(
PORT_ATTRIBUTES * pPortsArray,
int * nNumPorts
);

// pasted from code

PORT_ATTRIBUTES pPortsArray[50];
...