General information
Category:
Windows API functions
>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
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