
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.