我决定在我的Windows Mobile 6项目中使用tessnet2库。不幸的是,当我试图编译它时,它会抛出一个错误:为Windows Mobile编译时找不到引用程序集
The best overloaded method match for 'tessnet2.Tesseract.GetThresholdedImage(System.Drawing.Bitmap, System.Drawing.Rectangle)' has some invalid arguments
The type 'System.Drawing.Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
好的,我知道。添加对组件的引用。问题是,我做到了。我通过解决方案资源管理器(System.Drawing)中的'添加引用'添加引用,我甚至将它声明为'using System.Drawing'。
智能感知工作没有任何问题。当我写'rect'时,它会自动向我显示顶部带有'Rectangle'结构的列表。
什么问题?该组件被添加,甚至intellisense看到它,为什么不编译器?
你有没有设法编译它或制作一个C++ lib吗? – Patryk 2012-01-08 23:52:28