CreateObject Example for C++ 5.0 and later
For MFC, the factory object is not needed. The system API CoCreateInstanceLic can be used instead.