Hi All,

I had one declaration from a dll built in C as:

typedef struct
{
char sName[10];
}NAME;

NAME arrNames[20];
==================================================
Function declaration:
long FindNames(long Records, NAME *rNames)

After calling this function by passing the array pointer to arrNames
it fills up the arrNames.
==================================================

The converted function declaration in VB as follows:

Dim arrNames(20) as String

Declare Function FindNames(ByVal Records as Long,ByRef rNames() as String) As Long

But when I called this function the application gets crash, I suppose the conversion is not proper and thats why I am not getting expected result.


Can someone help me out to get rid from this problem?