Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Struct.vcx cMembers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00546561
Message ID:
00547101
Vues:
16
>In C++ the structure that I want to create just has:
>ADDR_REC stack[10];
Did they give you a header file (.h)? If so, the definition for ADDR_REC might be in there (it might be another structure or any of the basic types, e.g. int, char, double.)

>Since mine just says "stack[10]" how do you think
> this would be handled in struct.vcx
It all depends on how ADDR_REC has been defined. Stack[10] means it's an array of ten elements, now we just need to find out what type of elements they are. If the elements are character, then stack[10] will be a string with 10 characters, if the elements are type long, then stack[10] will be a string with 40 characters (10x4.) If the elements are another structure itself then it gets more complicated.

>Any ideas would be greatly appreciated.
> I'm not a C++ programmer so I'm a little
> lost here.
It has been years since I worked with C/C++ myself and I am rusty by now. I was working on some calls to the Windows API last night and I found this excellent web site with lots of API definitions and examples. Take a look at: http://www.news2news.com/vfp/index.php

Also, take a look at: http://fox.wikis.com/wc.dll?Wiki~Win32API~WIN_COM_DNA
Hector Correa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform