Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Struct to string?
Message
 
 
À
02/07/1998 16:40:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00113711
Message ID:
00113903
Vues:
29
Per,

>I found the following in the header file in the dir :
>the headerfile is scomm32.h
>and I also have a scomm32.lib
>so I can build a dll to overcome the struct difficulties,
>but I want to try it out in VFP!!
>
>#pragma pack(push, 1)

So that means it is 1 byte boundary packed. Now the only issue to determine is what the size of BOOL is. You'll have to check the other .h files the .c uses. Or you could just fire up the C compiler and print out the result of sizeof() on the struct is, that should tell you exactly.

You should be able to transparently use the DLL from VFP because there are no pointers in the struct. It might not be fast enough though since you have to do so much string manipulation on the VFP side.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform