0
我想創建使用Visual Studio 2010 C++ MFC庫的ActiveX組件mfc_activeX。完成嚮導系統編譯後沒有錯誤。不能添加功能到MFC ActiveX
通過點擊鼠標右鍵上Cmfc_activeXCtrl添加>>添加功能和填充/縮小添加簡單的新方法後PARAMS形成我得到了簡單的功能:
int Cmfc_activeXCtrl::Hello(int i)
{
return 0;
}
這個程序我不能編譯代碼了之後。我有消息:
Error 85 error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 744 6 mfc_activeX
86 IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxver_.h 81 3
如何逃避這些錯誤?