c#无法找到dll的入口点
public class Functions
{
.............
[DllImport("GYINTERFACE.dll",EntryPoint="INIT")]
public static extern int INIT();
..............
}
调用的写法如下:
try
{
int returnValue = Functions.INIT();
if (returnValue != 0)
{
this.errText = "初始化接口失败!";
return -1;
}
}
catch (Exception ex) --这抛出异常提示 无法找到dll的入口点
{
this.errText = ex.Message;
isInit = false;
return -1;
}
需要调用的GYINTERFACE.dll是用pb的com+弄的。
是什么原因那。谢谢各位了啊。