Visual C++Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I'm using Visual C++ .NET 2003. I have a function which returns, say,
System::Object __gc *rms
(this function is a member of a COM object).
Console::Write(rms) prints System.Double[], but I don't know how to get the values. I know I should get four doubles, but whatever I try, I get an Index out of bounds message.
Hi Michel, as I said I didnt have the complete code. So I wrote a minimal function that returns the pointer of the said type.
Now at my end I'm being able to access all four of the nodes. Just Debug though the code and see in any of the Watch windows if the returned pointer is in consistent state and indeed has all those four nodes. That is if havent done that already. Do write back, this is intresting stuff.