首页 新闻 赞助 找找看

c#调用扫描仪问题?

0
悬赏园豆:5 [已关闭问题]

环境是Vs2003

我在c#里面调用扫描仪接口的

DWORD GetImageSize(const char* filename);方法,总是出现

未处理的“System.DllNotFoundException”类型的异常出现在 ConsoleApplication.exe 中。

其他信息: 无法加载 DLL (ImageRWSB.dll)。

不知道出了什么问题?

c#中的代码:

[DllImport("ImageRWSB.dll", EntryPoint = "GetImageSize", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]
  public static extern int GetImageSize(string filename);

 

//调用

Console.WriteLine(Win32API.GetImageSize("D:\\1.jpeg"));

 

问题补充: 用这种public static extern int GetImageSize(Intptr filename); 提示说没有Intptr的usin指令
小小蚂蚁的主页 小小蚂蚁 | 初学一级 | 园豆:180
提问于:2009-06-12 11:49
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册