I am facing exception Exception in thread "main" com.jacob.com.ComFailException: Can't co-create object
while running the code below.
I checked online for help. Some sites say that I need to register my dll. I tried registering using regsvr32.exe
. But I am unable to register successfully. Getting below popup.
The module "jacob-1.18-M2-x64.dll" was loaded but the entry-point DllRegisterServer was not found.Make sure that "jacob-1.18-M2-x64.dll" is a valid DLL or OCX file and then try again.