CPCericola
June 24th, 2002, 09:41 AM
I'm working on a project in C# and it requires interaction with a scanner. With previous versions, I'd use the ImgScan control(imgscan.ocx) and it worked well. I've tried using this with C# and regardless of what I do, I receive the following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Catastrophic failure
Has anyone used this control and perhaps I'm doing something wrong? Is there another API or class that I can use with .NET without a wrapper? Below is a section of code which kicks off this exception:
static void Main(String[] args)
{
ScanLibCtl.ImgScanClass x = new ScanLibCtl.ImgScanClass();
x.AboutBox();
}
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Catastrophic failure
Has anyone used this control and perhaps I'm doing something wrong? Is there another API or class that I can use with .NET without a wrapper? Below is a section of code which kicks off this exception:
static void Main(String[] args)
{
ScanLibCtl.ImgScanClass x = new ScanLibCtl.ImgScanClass();
x.AboutBox();
}