View previous topic :: View next topic |
Author |
Message |
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Sat Jul 03, 2004 1:47 am Post subject: More fun with structs |
|
|
If I make the call:
Code: |
RECT rect;
OS.MapWindowPoints (handle, 0, &rect, 2)
|
and the OS object has:
Code: |
int MapWindowPoints (int hWndFrom, int hWndTo, POINT* lpPoints, int cPoints);
int MapWindowPoints (int hWndFrom, int hWndTo, RECT* lpPoints, int cPoints);
|
Does the &rect know which MapWindowPoints to use? I'm pretty sure it does, but I got a wierd message from the compiler.
DMD wrote: |
function MapWindowPoints (int hWndFrom,int hWndTo,POINT *lpPoints,int cPoints) does not match argument types (int,int,RECT ,int)
|
That happened when I had rect instead of &rect in the call to MapWindowPoints. _________________ I really like the vest! |
|
Back to top |
|
|
Blandger
Joined: 21 May 2004 Posts: 50 Location: Ukraine, Kharkov
|
Posted: Sat Jul 03, 2004 4:12 am Post subject: Re: More fun with structs |
|
|
brad wrote: |
function MapWindowPoints (int hWndFrom,int hWndTo,POINT *lpPoints,int cPoints) does not match argument types (int,int,RECT ,int)
|
Check the error line number. There are 3-4 lines in the control.d with this function call. It seems to me you fixed one call but didn't fix other calls below. _________________ Regards, Yuriy |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|