Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C Structure query
Message
De
31/01/2002 06:30:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00612717
Message ID:
00613244
Vues:
33
>>Can this structure be emulated in VFP 6.0?

>Q181289 shows you how to do this.

>> I have tried declaring an array of 70 elements, I also tried one long character string... until I realised that CHAR* was apointer to the value rather than the value itself. Any ideas?

>Think of pointers as "passing by reference". So just put an @ in front of the parameter.

Hi Mike,

Thanks for the information. Passing by reference with @ is fine for simple structures, the problem I faced was that the structure itself is made up of other pointers (CHAR*) and LONG values. If it were just LONG values I could pass the relevant number of bytes (number of LONG values multiplied by 4) but the pointers to the CHAR variables really threw me. Is there a way to create a structure to pass to the function by reference that contains other values passed by reference?

In the interim I have created a VB OCX that wraps around the API command and slots into Fox... It would be nice to be able to do it in pure fox though... to date I've found that there is very little that Fox *cannot* do.

Thanks again,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform