Thanks for the help, it looks like I got all the properties now. It sill
doesn't load any URL, but maybe that's because I didn't put anything in the
setter's if-statement you showed. Also, I'm not sure about the syntax for
the getter...it's a non-void method yet the return is within an
if-statement. Maybe that's allowed in C++, but in my high school java class
(I'm in college right now), we were told to never do this.

On 10/8/06, Alfred Van Hoek <[EMAIL PROTECTED]> wrote:


On Oct 8, 2006, at 3:38 AM, Jack Smith wrote:

> I guess the only thing stumping me is exactly how getters and
> setters are
> formed. You said that they implement REALGetPropValue and
> REALSetPropValue.
> Does that simply mean a void method with one of these in it? Such
> as...
>
> void My_LeftGetter() {
>    REALGetPropValue((REALobject) ???, "Left", &value);
>    //not sure what the first parameter is
> }

long My_LeftGetter(REALobject instance, long param)
{
        long value;
        if (REALGetPropValue(instance, "Left", &value))
                return value;
}

void My_LeftSetter(REALobject instance, long param, long value)
{
        if (REALSetPropValue(instance, "Left", value))
        {
                // we succeed with dynamic access
        }
}


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to