屬性頁 > 組態屬性 > 一般 > Common Language Runtime 支援 (/clr) > 打開!!
然後
//#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
//#using <System.Drawing.Common.dll>
using namespace std;
using namespace System;
using namespace System::Collections;
//using namespace System::Windows::Forms;
//using namespace System::ComponentModel;
//using namespace System::Data;
using namespace System::Drawing;
using namespace System::Drawing::Imaging;
沒有留言:
張貼留言