General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only