1. Grab the nearest book.
2. Open the book to page 123.
3. Find the fifth sentence.
4. Post the text of the next 3 sentences on your blog along with these instructions.
5. Don't you dare dig for that "cool" or "intellectual" book in your closet!
After all, this code
CMyObject* pObject = new CMyObject;seems much more direct. Of course, it is more direct, but it's also very limited: what if you wanted to write a function that could create an object and get it to do some work, but didn't know the exact class of object to be created until runtime?
From
Professional MFC Visual C++ 5.