在 windows 8.1 中使用 twain_32.dll 进行扫描时出现 AccessViolationException

AccessViolationException when we use twain_32.dll for scanning in windows 8.1

我有一个与扫描仪通信并获取图像的应用程序,它在 windows 7 之前工作正常,但在 windows 8.1 中失败,我们使用 twain(twain_32.dll ) 用于扫描目的的库,请帮助我

Make sure that the application id and source id which you are passing to twain.dll is not null. From windows 8 and above, the ids can not be null due to security reasons.