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