Returning an ads_point from interop method

Returning an ads_point from interop method

Anonymous
Not applicable
382 Views
3 Replies
Message 1 of 4

Returning an ads_point from interop method

Anonymous
Not applicable
Like the topic says, How can I return an ads_point from a method in an interop arx application?

I'm new to this...please be gentle.

Thanks
0 Likes
383 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
The ads_point is defined as an array of 3 doubles.
If you have a ads_point as an return value it returns the address of the first element.
If the returned ads_point is a local variable inside the function than the memory of that address is freed after the return.
I think it is more readable to use an ads_point as output variable en not use a static/global variable as a return value.
0 Likes
Message 3 of 4

Anonymous
Not applicable
What do you mean by an 'interop arx application'? Do you mean an ActiveX server, or a managed or mixed mode ARX? -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com "scottocad" wrote in message news:857938.1102539292325.JavaMail.jive@jiveforum2.autodesk.com... > Like the topic says, How can I return an ads_point from a method in an interop arx application? > > I'm new to this...please be gentle. > > Thanks
0 Likes
Message 4 of 4

Anonymous
Not applicable
I am making an ARX ActiveX program using the ATL DLL option in C++. I am trying to figure out how to pass an array back to the user app (like VB or VBA). I am very new to programming ARX and have only wrote a few C++ apps, mostly in school or tutorials - nothing practical. Thanks for your help.
0 Likes