DLL 没有被其他程序暂用,权限也没有问题,就是一个dll文件。根据文档说明就一个dll文件。程序的Declare部分是这样的: Declare Function WaitJob Lib "TSHDll" _ (ByRef iStatus As Integer, ByRef iNo As Integer) As Integer ....... [DllImport("TOCRDll")] public static extern int WaitJob(int iNo, ref int iStatus); .....
应为:[DllImport("TSHDll")] public static extern int WaitJob(int iNo, ref int iStatus); .....
1 那个DLL文件是否被别的进程占用了
2 文件是不是被加入了访问权限
3 那个DLL是不是有引用别的文件(估计8成也是DLL),而那个被引用的文件出了问题
仅供参考
Declare Function WaitJob Lib "TSHDll" _
(ByRef iStatus As Integer, ByRef iNo As Integer) As Integer
.......
[DllImport("TOCRDll")]
public static extern int WaitJob(int iNo, ref int iStatus);
.....
public static extern int WaitJob(int iNo, ref int iStatus);
.....