Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Struct.vcx cMembers
Message
From
20/08/2001 22:43:06
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00546561
Message ID:
00546567
Views:
23
>I'm using your struct class for the first time to make some calls to a proprietary API that was written in C++.
>
>In setting up a sub-class of struct I run into this in the second structure that I am creating. The ADDR_REC mentioned below is a structure that was created just before this one. How would this be entered in cMembers? It's not the whole structure ADDR_REC and it's not a pointer either.
>
>typedef struct
>{
> ADDR_REC stack[10]; /********** record stack **********/
>} ZIP4_PARM;

You have to enter the "primitives" (eg. DWORD, Int, double, whatever) that make up ADDR_REC ... 10 times over.

ZIP4_PARM is a structure that contains an array of 10 structures of ADDR_REC.

You would probably use struct to compose 10 ADDR_REC objects/strings, concatenate them, and then pass them on to the API call that uses ZIP4_PARM. Subsequently, if need be, you would disassemble ZIP4_PARM into 10 ADDR_REC strings and copy them back out to their respective objects.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform