Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Struct to string?
Message
 
 
To
02/07/1998 16:40:17
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00113711
Message ID:
00113903
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform