Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correct VB5 declaration of C dll
Message
De
05/03/1998 14:25:57
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
 
 
À
05/03/1998 10:45:38
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Divers
Thread ID:
00082700
Message ID:
00082784
Vues:
27
>-C declaration:
>
>int _stdcall ChArray (LPTSTR *s1, int d);
>
>-VB declaration:
>
>Declare Function ChArray Lib "c:\project\dll\debug\testvb\dll.dll" _
> (????? Str1 As ??????, ByVal dimen As Long) As Long
>
>Explanation:
>
>In the C routine, s1 is an array of strings.
>
>When I work with regular strings (LPTSTR), I have no problem modifying and returning the string. But when I tried to modify an array of strings (LPTSTR *), well, there is something I am missing. So maybe just my declaration isn't correct in VB, or maybe the way I'm declaring it on the C side isn't correct either.

I really am not sure, but could you pass ByRef Str1 as Variant?
Jay Shepherd
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform