나는 C#에서 이러한 클래스 및 대리자를 가지고 :++/CLI
public delegate void Super();
public class Event
{
public event Super activate ;
public void act()
{
if (activate != null)
activate();
}
}
나는 C++/CLI에서 다시 작성해야합니다. 이 activate()
호출에 문제 usage requires Event::activate to be data member
public delegate void Super();
public ref class Event
{
public:
event Super ^activate;
void act()
{
if (activate!=nullptr)
activate();
}
};
-하지만 난 오류가있어?
는 만약 있다면 (! = nullptr 활성화)'때문에'구체적'activate'는 데이터 값 –
하지 않다 불행 그래서 C에서 같은 일을하는 방법 +/cli C에서 #? –