FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

More fun with structs

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
brad
Site Admin


Joined: 22 Feb 2004
Posts: 490
Location: Atlanta, GA USA

PostPosted: Sat Jul 03, 2004 1:47 am    Post subject: More fun with structs Reply with quote

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
View user's profile Send private message
Blandger



Joined: 21 May 2004
Posts: 50
Location: Ukraine, Kharkov

PostPosted: Sat Jul 03, 2004 4:12 am    Post subject: Re: More fun with structs Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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