Information générale
Catégorie:
Fonctions Windows API
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement