执行Visual C ++ GUI程序时出错

时间:2015-03-25 22:02:26

标签: forms visual-c++ c++-cli linker-errors

我收到错误,

error C1113: #using failed on 'c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0\system.core.dll'

执行以下代码时......

MyForm.cpp

#include "Myform.h"

using namespace GUI;  

[STAThreadAttribute]                  
int main(){

    MyForm fm;                       
    fm.ShowDialog(); 
    return 0;
}

MyForm.h

 private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
                 this->Close();
                 }

0 个答案:

没有答案