[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] Set/Get UserData from a widget
From: |
Andrew Ford |
Subject: |
Re: [paragui-users] Set/Get UserData from a widget |
Date: |
Tue, 6 Aug 2002 11:07:49 -0700 (PDT) |
Did you run it under the debugger to check exactly
what's going on? I don't even know what these
functions are supposed to be used for :)
--- Keith Swyer <address@hidden> wrote:
> hey, just wondering if anyone has used the
> SetUserData or GetUserData
> members of PG_Widget. I keep getting access
> violations when trying to get
> the userdata, being a PG_Rect*.
>
> This may not make much sense, but...
>
> //temp is a PG_Button
> temp->SetUserData((void*)temp->GetClipRect(),
> sizeof(PG_Rect*));
>
> PG_Rect *temp;
> if (itr->second->GetUserDataSize())
> itr->second->GetUserData((void*)temp);
> //access violation here
>
>
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com