Reputation: 63
I added a twainScanner .dll reference to ax2009. And I have a problem with initiation. How to initiate DataSourceManager object with ax form? I tried a lot of tips, but everytime i got error The '1' argument is incompatible with the required type.
void openScannerForm()
{
Args args;
FormRun formRun;
TwainScanning.AppInfo app;
TwainScanning.DataSourceManager twainDSM;
;
app = new TwainScanning.AppInfo();
twainDSM = new TwainScanning.DataSourceManager(*HERE I HAVE A PROBLEM* , app); //this object require Form parameter, how to get it ?
}
Upvotes: 0
Views: 60