What is the difference between this:
Myclass *object = new Myclass();
Myclass object = new Myclass();
The second is wrong !
You may use
That will work.
Now, concerning how to choose between these two possibilities, it mainly depends on how long your object should live. See there for a thorough answer.