Information générale
Catégorie:
Fonctions Windows API
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement