Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Structures declared in C header files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00110588
Message ID:
00110593
Vues:
18
>I have a C header file that declares several structures to be used in API calls to a dll. If I include this header file in fox, can I use these structures in the API calls? If not, how can I set up structures in fox to allow me to make these calls?
>
>TIA
You have to simulate the structure using a string. For example, here's the C declaration for a FILETIME structure:
typedef struct _FILETIME { // ft
    DWORD dwLowDateTime;
    DWORD dwHighDateTime;
} FILETIME;
In VFP you'd declare this as:
lcfiletime = REPLICATE(CHR(0), 8)
* Or
lcfiletime = SPACE(8)
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform