General information
Category:
Windows API functions
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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only