Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter as structs
Message
 
To
18/05/2001 13:30:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00508835
Message ID:
00508880
Views:
22
>>Is posible to pass a parameter to an api function from VFP when the parameter is a structure?
>>
>>Thanks everybody.
>>Mario Morales
>
>Mario,
>Depending on the structure, you can simulate it using a character string. Some structures have pointers to other structures and these are more difficult. I've used to Ed Rauh's CLSHEAP and Christof Lange's STRUCT classes to help out with these situations. Both are availble from the Download section.
>
>What structure are you trying to pass and what function are trying to pass it to?
>----------------My Answer------->>
>Hi Larry;
>
>i was traying to pass this structure:
>Type SYSTEMTIME
> wYear As Integer
> wMonth As Integer
> wDayOfWeek As Integer
> wDay As Integer
> wHour As Integer
> wMinute As Integer
> wSecond As Integer
> wMilliseconds As Integer
>End Type
>
>for the SetSystemTime function, but only to test..
>but i realy want to use other structures.
>
>i saw some example about how to obtain the structure like a string how you said, but nothing about to create the string to pass it.
>
>i´ll see the download section.
>
>Thanks,

Mario,

Check out Windows Time in the download section (just click the link). It handles all this stuff for you.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform