Home Dashboard Directory Help
Search

MFC - OLE Automation - COleObjectFactory Registry Registation fails with blanks in Path by M. Zuehlke


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 661289
Opened: 4/14/2011 6:58:54 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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.
Details
Sign in to post a comment.
Posted by Microsoft on 4/26/2011 at 3:22 PM
Hello,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 4/15/2011 at 1:07 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 4/14/2011 at 7:13 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.