Get an object as return value

Apr 3 2005 7:24 AM
Hi all. I´m trying to get an object this way: Object *myObject; myObject = myFunction (parameters); myFunction returns a Object type. It compile well, but when I execute, it crash. How can I assign myObject to the return value? I try to create a new instance: myObject = new Object(). But doesnt work. Thanks!

Answers (1)