Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accept Win32 user messages
Message
From
12/11/1997 22:16:10
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059457
Message ID:
00059846
Views:
43
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform