Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Structures declared in C header files
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00110588
Message ID:
00110593
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform