110,536
社区成员
发帖
与我相关
我的任务
分享
[DllImport("gregn50.dll"]
public static extern int DllRegisterServer();//注册时用
[DllImport("grdes50.dll")]
public static extern int DllUnregisterServer();
// 注册 DLL 文件
void RegDll()
{
int i = DllRegisterServer();
if (i >= 0)
{ }
else
{
MessageBox.Show("注册DLL文件失败,请与系统管理员联系");
}
}