【发布时间】:2023-12-23 21:37:01
【问题描述】:
我是 VS2008 的新手,我一直在到处寻找,但找不到任何解决问题的方法。代码如下:
private void btnScan_Click(object sender, EventArgs e)
{
{
if (!msgfilter)
{
this.Enabled = false;
msgfilter = true;
Application.AddMessageFilter(this);
}
tw.Acquire(); <-- This is where the error shows
}
}
【问题讨论】:
-
那么
tw到底是什么,你如何创建或初始化它? -
什么是 tw ?它在哪里声明
-
你想在这里做什么?.. 如果
tw为 Null,则会出现 Null 引用。让我们知道tw来自哪里? -
这是相关代码:private bool msgfilter;私人吐温tw;私人 int picnumber = 0; [STAThread] static void Main() { if (Twain.ScreenBitDepth
-
请发布完整代码
标签: c# visual-studio-2008 ocr