I have a native C++ MFC/Win32 app running on Windows. For various reasons, I'd like to be able to re-instantiate the document object. i.e. delete the existing document object, create a new instance, and drop that new instance in place of the previous one.
I'm sure there's a specific process for doing this to ensure everything in the framework is setup properly afterwards. Does anyone have experience with doing this successfully? Any suggestions on how to go about this?