I'm not sure you can David.

I think you need to use SendMessage().  If one of the attributes name is
myVal,
then use something like:

RexxObjectPtr attribtueValue = context->SendMessage0(val, "myVal");

The other thing you could do is define a CSelf for the val object and use
one of the get CSelf methods to get the C self struct and get the attribute
value from that.

Sorry I don't have anything here to look up the exact syntax, so the above
is just an approximation.

You could look at the .Point class definition in ooDialog for an example of
a class that only has two attributes.  Then in a method, if one of the args
is a .Point object, I just get the CSelf struct and get the x an y
attribute values directly from that.

--
Mark Miesfeld


On Tue, Feb 18, 2014 at 9:20 AM, David Ashley <[email protected]>wrote:

> I am in the middle of writing the new IPv6 sockets API and I have run
> into a little problem. I have a C++ method API that looks like this.
>
> RexxMethod3(int,                       // Return type
>             orxSetSoctOpt6,            // Object_method name
>             int, level,                // socket level
>             int, option,               // socket option
>             RexxObjectPtr, val)        // socket option value
>
> The val argument is itself defined as a simple ooRexx class with two
> defined attributes.
>
> What I can not figure out is how to get a context for val so I can use
> the GetObjectVariable method to fetch the values for the two attributes.
>
> Any help would be appreciated.
>
> David Ashley
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to