This indicates an issue with the installation of your VS instance. The basic project template creates the project but it fails doing the post-creation work because of a COM-related issue. Unfortunately determining what is failing isn't trivial.
You mentioned you reinstalled VS so I assume you're running the latest update. Do you have any extensions installed? If so then disable or remove them temporarily. You might also try doing a repair instead of a reinstall.
I notice you are creating the project in a repo. Is that directory structure empty? Try creating the project in a simple directory like C:\temp
. If it works there then something about your project path it doesn't like. Not sure what though since this looks like you're using the default path.
Since it is COM related it is possible that Windows is having a problem activating a COM object. Is there anything in the Windows Event Log related to this?
You can try running VS with the /log
parameter (dev.exe /log LogFilePathAndName
). This will generate a log file. After the error replicates then look in the log file to see what error is occurring.
Can you create a regular C++ project, not MFC?
If none of that works then you might need to use Report a Problem to report the issue to MS so they can look at the technical details.