You can actually see how I handle the SystemTime structure in my FAQ at
http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~2,33,Forum=5,29,617.
In structure terms, everything is a character. If the structure needs a DWORD or WORD (numerics), you have to convert the numeric into a 4 byte or 2 byte character representation, respectively. The FAQ demonstrates a function to do this and Ed Rauh's CLSHEAP program also has functions to do this (and to do the reverse).
Good luck!
>>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 Morales
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao