小弟在程序中调用了ReceiveYModemDll方法后. 在通过OleDb连接数据就出现了未将对象引用到实例的错误。 但我不调用ReceiveYModemDll方法。就一切正常. 请高手指教。。!
代码如下: [DllImport("platw95.dll",EntryPoint="ReceiveYModemDll")]
public static extern int ReceiveYModemDll(string port,string receviePath,string recevieFilename,int waitSeconds);
代码如下: [DllImport("platw95.dll",EntryPoint="ReceiveYModemDll")]
public static extern int ReceiveYModemDll(string port,string receviePath,string recevieFilename,int waitSeconds);
dll函数原型我这里没有。 platw95.dll也是设备厂商提供给我的(应该本身不会有问题吧)。 我调用platw95.dll中的函数都很正常。 但是一调用完成后,再连接数据库就出现错误了!.(错误:未将对象引用到实例,不调用是不会出错的.) 是不是我在调用的时候有问题,还是别的问题呢?