Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accept Win32 user messages
Message
De
12/11/1997 22:16:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00059457
Message ID:
00059846
Vues:
47
That's not the point. There are API functions that use pointers to structures as output parameters. The "bad" thing is that the function will allocate the buffer, so you cannot use a string to simulate it. This is either case 2 or 3.

Since some functions are not very clear documented, the fact that the function will allocate the structure is not obvious. This is why I asked you: is this the case?

Vlad

>Agreed. After all, you're the one who developed it.
>Thank you
>
>>I think so. Basically, there are 3 cases when you need the Pointers class:
>>1.When you need to send to a DLL function a pointer to a structure that contains pointers.
>>2.When you need to retrieve the value from a pointer included in a structure.
>>3.When you need to retrieve the content of a memory zone.
>>
>>Otherwise, there's no need to complicate your life/programs. :)
>>
>>Vlad
>>
>>>My original reply in this thread was based on reading the API reference guide where the first parameter is described as a pointer to a structure. I guess you're right, you can use a string to simulate the structure and pass it by reference to the function.
>>>
>>>Sorin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform