1
Answer

Get an object as return value

subscribe

subscribe

19y
3.3k
1
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)