Loading...

Is there any known problem using GDTWAIN with Vista ?

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Is there any known problem using GDTWAIN with Vista ?

Postby tim » Thu Dec 04, 2008 8:52 pm

We appear to have GDTWAIN running properly to capture pictures from a webcam within a form in Visual FoxPro 8. We have tested this successfully on three different machine using XPPro and XPHome. We can not get it to work on another machine that is on Vista Business.
We had trouble registering the .OCX in the run command and eventually appeared to succeed by using the DOS command line, but the button in the form that works under XP does nothing at all in Vista.
tim
 
Posts: 6
Joined: Wed Oct 22, 2008 6:46 pm

Re: Is there any known problem using GDTWAIN with Vista ?

Postby Loïc » Thu Dec 04, 2008 9:26 pm

HI,

To give an answer to post title: No. GdTwain is developed , tested and used for internal production under windows Vista (like all other GdPicture components).

We had trouble registering the .OCX in the run command and eventually appeared to succeed by using the DOS command line


Which trouble ?

but the button in the form that works under XP does nothing at all in Vista


Do you have more information ? IE: a code snippet & a report of the returned values & behaviour of the called methods.

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Is there any known problem using GDTWAIN with Vista ?

Postby tim » Thu Dec 04, 2008 10:46 pm

Thanks for the reply.

The error message was 0x80004005. We tried various web searches and tools to deal with this but were not succesful. We appeared to get it to register properly via the command line instead of the run command, but have no way of telling if it really worked or not.

Code snippet (working fine in XP Pro and Home with different machine types and different camera types) :

aaa = CREATEOBJECT("gdtwain2.twain")
aaa.TwainSetHideUI(.F.)
aaa.SetLicenseNumber("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
aaa.TwainAcquireToGdPictureImage
aaa.SaveAsJPEG("AUTO"+ALLTRIM(STR(Cust.CustNo))+".jpg")

............where Cust.CustNo is the control number for that particular record.
tim
 
Posts: 6
Joined: Wed Oct 22, 2008 6:46 pm

Re: Is there any known problem using GDTWAIN with Vista ?

Postby Loïc » Thu Dec 04, 2008 10:58 pm

HI,

The error message was 0x80004005. We tried various web searches and tools to deal with this but were not succesful



The answer is here: http://www.gdpicture.com/faq.php#G9


For your code snippet I need also returned values & behaviour of each called methods. Else I can't help you more.


Loïc


PS: I removed your license key from your code snippet. Please try to don't write it again on the forum.
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Is there any known problem using GDTWAIN with Vista ?

Postby 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
tim
 
Posts: 6
Joined: Wed Oct 22, 2008 6:46 pm

Re: Is there any known problem using GDTWAIN with Vista ?

Postby tim » Thu Jan 22, 2009 11:19 pm

I have been researching this further and have found some interesting information on another website.
For Vista, we do of course have to use newer drivers than on XP.
It seems that Logitech no longer support the TWAIN standard, in which case the problem would appear to be GDTWAIN itself rather than Vista. Most of the WebCams out there seem to be Logitech so it seems that we need to go back to the drawing board and find an alternative piece of software that uses an image capture system that is still supported.
I would welcome your input on this, am I understanding this correctly ?
If so, do you have (or know of) a suitable product ?
tim
 
Posts: 6
Joined: Wed Oct 22, 2008 6:46 pm

Re: Is there any known problem using GDTWAIN with Vista ?

Postby Loïc » Fri Jan 23, 2009 3:48 pm

Hi Tim,

Again I need that:

For your code snippet I need also returned values & behaviour of each called methods. Else I can't help you more.



I suppose that your problem is simple: You don't have a TWAIN driver for your device. But I can give you a definitive answer only if you give me answer to my questions.

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron