1. 程式人生 > >VS2015 COM 編譯報許可權錯誤

VS2015 COM 編譯報許可權錯誤

問題:warning MSB3075: The command "regsvr32 /s "G:\StudyAndPractice\C++\COM\ATLProject1\Debug\ATLProject1.dll"" exited with code 5. Please verify that you have sufficient rights to run this command.

   error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.


解決:相應ProjectProperties->Linker ->General->Pre-user Redirection 設為TRUE