by tim » Wed Jan 21, 2009 11:19 pm
We did not manage to solve this problem when we posted it originally so I am now revisting it. I have taken a brand new machine running Vista, copied MSVBVM60.dll, GDTWAIN.dll and GDTWAIN2.OCX into the Window\system32 directory. I have registered GDTWAIN.OCX using REGSVR32 as per the manual and it gave me a message that it had registered correctly.
I then took the working software we have developed from an XP machine and copied it, together with its data files, onto the Vista machine.
I connected a new Logitech WebCam, it set itself up and is working properly within its own window.
When I click on the TAKE PICTURE button on our form (which works perfectly in XP,) nothing happens at all. There is no result and no error message.
The entire code fro the button is below (licence number blanked out here)
aaa = CREATEOBJECT("gdtwain2.twain")
aaa.TwainSetHideUI(.F.)
aaa.SetLicenseNumber("*************************")
aaa.TwainAcquireToGdPictureImage
aaa.SaveAsJPEG("AUTO"+ALLTRIM(STR(Cust.CustNo))+".jpg")
Replace Cust.Photo WITH 'AUTO'
ThisForm.Refresh