本人新手,第一次调用ocx,希望大家能指点一下,多多帮助下小弟!       ActiveScanClass a; 
        private void Form1_Load(object sender, EventArgs e)
        {
            a= new ActiveScanClass();
        }
        private void btnScan_Click(object sender, EventArgs e)
        {
            try
            {   
                a.AcquireImage(1); //LONG AcquireImage(LONG nStart)
                                   //扫描图像。
                                   //返回值为此次扫描获得的图象数目
                                   //参数nStart是扫描的第一张序号
                  
                a.SetImagePath("C:\temp");    //LONG SetImagePath(BSTR szPath)
                                              // 设定扫描图像路径。
                MessageBox.Show("Hello,world!");
                Console.WriteLine("Hello,!");
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
每次单击按钮后都报  未将对象引用设置到对象的实例  错误