|
-
Oct 5th, 2007, 01:35 AM
#1
Thread Starter
Lively Member
[RESOLVED] Conversion of C Function to VB Function
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|