Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass a VB string to an API
Message
De
01/07/1999 05:06:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/07/1999 04:12:00
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00236336
Message ID:
00236342
Vues:
10
>Hi all,
>
>I want to use an API which is explicitly written for VB. This API takes a string parameter passed by reference as argument.
>
>All other API's explicitly written for VB which do not take strings as argument succeed.
>
>By testing with other API's I came to the conclusion these api's failed because of that the stringformat of the parameter
>
>I know that VB uses an other stringformat (BSTR) than VFP (?)
>
>How do I solve this problem ??
>
>Regards, Walter
Walter,
First I would try to pass string by ref. :
lcString = "myString"
myAPICall(@lcString)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform