help with pass string array to C DLL procedure 
Author Message
 help with pass string array to C DLL procedure

Hi,

Does anybody know how to pass string arrays to a C DLL procedure in VB?

codes are in the following:

C declare:

int __stdcall foo(int argc, char **argv);

VB code:

Declare Function foo Lib "myDll.dll" _
        (Byval argc as integer, argv as any) as integer

Dim argv(4) as string
....
rc = foo(argc, argv(0))

This does not work!

Please help

Yan

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing an array to a DLL procedure

2. how to pass a string array to mfc dll

3. Passing string Array from VB3 to DLL

4. passing (string) arrays from VB to C-DLL and vice versa

5. Passing String Arrays to API DLLs

6. passing string arrays to dll

7. Passing array of strings to a dll in VB

8. Passing string Arrays from Fortran DLL to Visual Basic

9. Passing VB String array to DLL???

10. passing vb5 arrays of strings to a vc++ 5 C dll

11. Passing Array of Strings to DLL

12. Passing string arrays to DLL (32 bit)

 

 
Powered by phpBB® Forum Software