Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accept Win32 user messages
Message
From
12/11/1997 19:39:31
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059457
Message ID:
00059828
Views:
30
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
>
>
>>Why do you need the Pointer class for these functions? Can't you use a string to simulate the structure?
>>
>>Vlad
>>
>>>Hi Balasz,
>>>
>>>You might want to take a look at the GetMessage or PeekMessage funxtions in WIN32API. However, both of these functions use pointers to structures as parameters, and VFP cannot deal natively with pointers. To help you with that, there is a Pointers class in the Files section that you can download. It will do the job.
>>>
>>>HTH,
>>>Sorin
>>>
>>>
>>>>I'm accessing an API which returns his output via
>>>>Win32 user messages. Is it possible to accept Win32
>>>>user messages with VFP 5.0 ?
>>>>
>>>>Thanks for any help.
>>>>
>>>>Balazs Simon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform