I have a best practices question. I need to pass a pointer back from a function that creates the object. Right now I'm writing code like this:
static CMyObject *Obj = new CMyObject();
Is this the best way to pass back an object pointer?