Hi
MFC internally uses CreateObject function to create class objects dynamically.I was wondering as to what is the purpose of this feature.
I suggest you could refer to the Doc: Run-Time Object Model Services
Dynamic object creation enables you to create an object of a specified class at run time. For example, document, view, and frame objects must support dynamic creation because the framework needs to create them dynamically.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.