Information générale
Catégorie:
Produits tierce partie
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement