jjzjj

LoginAccounts

全部标签

windows - C++/CLI 中的错误,除非使用 Pthread 创建委托(delegate)实例,否则无法获取函数地址

我在VisualC++2008Professional上使用C++/CLI,因为我使用的是Windows窗体,这意味着我已经管理了代码并且我正在尝试调用静态函数LoginAccounts,但我得到一个错误可能是因为我我正在混合托管代码和非托管代码,但我不知道该怎么做。我正在使用适用于Windows的PThreadSystem::Voidtesting_Click(System::Object^sender,System::EventArgs^e){pthread_create(&t,NULL,&Contas::LoginAccounts,this);//Errorinthisline}