64,637
社区成员
发帖
与我相关
我的任务
分享
// LR500.h
#pragma once
#ifndef LR500
#define LR500
using namespace System;
namespace LR500 {
public ref class Class1
{
// TODO: 在此处添加此类的方法。
public:
Class1();
Class1(int index);
private:
int _index;
};
}
#endif
// 这是主 DLL 文件。
#include "stdafx.h"
#include "LR500.h"
LR500::Class1::Class1()
{
this->_index = 0;
}
LR500::Class1::Class1(int index)
{
this->_index = index;
}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
LR500::Class1 cls1(2);
}
#ifndef LR500
#define LR500
...
#endif