With VS2010 the OLE Registration with COleObjectFactory::RegisterAll() / COleObjectFactory::Register() slightly changed.
Within the function _AfxOleMakeSymbolTable the path of the module is now determined by AfxGetModuleFileName instead of AfxGetShortModuleFileName (VS2008). This means there can be blanks within the path, thus the value needs to be enquoted when written into the registry (for the ....\LocalServer32\ value) but this is not done.
This results in an error 'invalid win32 application' when calling COleDispatchDriver->CreateDispatch().
Please review this change carefully and remove the bug.