Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accept Win32 user messages
Message
 
To
12/11/1997 22:16:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00059457
Message ID:
00060140
Views:
37
Frankly, I don't know if that is the case or not. The documentation refers to a pointer to an MSG structure that's defined as follows:
Quote
typedef struct tagMSG { /* msg */
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG
The MSG structure contains information from the Windows application queue.
hwnd Identifies the window that receives the message.
message Specifies the message number.
wParam Specifies additional information about the message. The exact meaning depends on the message value.
lParam Specifies additional information about the message. The exact meaning depends on the message value.
time Specifies the time at which the message was posted.
pt Specifies the position of the cursor, in screen coordinates, when the message was posted.
Unquote
Decrypting the documentation and trying to figure out where the structure is defined means more complications for me, I'm not very familiar with the WinAPI or C.
>>>Otherwise, there's no need to complicate your life/programs. :)
That's what I agree with, although I admit that sometimes I complicate my programs to make my life easier.
Anyway, I (would) appreciate your (further) comments on this subject

Sorin

>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