Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass a VB string to an API
Message
From
01/07/1999 05:06:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/07/1999 04:12:00
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00236336
Message ID:
00236342
Views:
9
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform