Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ help
Message
From
15/08/1997 11:55:52
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
To
14/08/1997 19:22:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00044460
Message ID:
00044948
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform