Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ help
Message
De
15/08/1997 11:55:52
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
 
À
14/08/1997 19:22:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00044460
Message ID:
00044948
Vues:
32
>You can't return a string as value from a C function. All you can do is to return a pointer to the string. I never tried it for a DLL function, but I don't think it will work from VFP (the function will return a pointer, so probably you'll receive in the string the address of the string, not the actual string.) But you can try it.
>
>The sure solution: return the string in a parameter. (Call the function with param by address not by value: @MyReturnString).
>
>Why don't you use the WIn32API function GetLocalTime?
>
>Vlad
>
>>How do I allow the function to return a string. As near as I can tell, you can't declare the function return type as "string".
>>
>>I've declared the dll in VFP as such:
>> DECLARE STRING ConvertTime IN Timeconv AS ConvertTime
>>
>>So how do I make ConvertTime() (code above) return a string?


Thanks everyone for your help, I got it.

Ed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform