Twain DLL problem

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
glnoble
Posts: 11
Joined: Tue May 01, 2012 3:02 pm

Twain DLL problem

Post by glnoble » Sun Jun 03, 2012 12:32 am

I am moving from gdpicture 5 activeX to .net 8. The twain is slightly different so trying to rewrite under the new standards. running into an issue with the twain DLL. when I try even the simplest function I get the following error:

The version of GdPicture.NET.twain.gdtwain.dll is invalid. Please update the
following dll to latest version:
C:\Windows system32\gdpicture.net.twain.gdtwain.dll

Just to be safe I have copied all the redist files to both system32 and the syswow64 directories. I am developing on a Windows 7 64bit machine with the latest updates using Microsoft Access 2010 (32bit version). I am running the latest version of GdPicture .NET.

Why am I getting this error?

Sample code attached to a button which produced the error:

Private Sub Command37_Click()
On Error GoTo Handler_Err

Dim Imaging1 As New GdPictureImaging
MsgBox Imaging1.TwainGetState

Handler_Exit:
Exit Sub

Handler_Err:
MsgBox Err.Description
Resume Handler_Exit
End Sub

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Twain DLL problem

Post by Loïc » Sun Jun 03, 2012 11:35 am

Hello,

The message is clear, you are getting this error because the redistributed dll version is legacy regarding the GdPicture.NET core you are using.

The best option for you is to download the latest gdpicture.NET version and ensure yourself to redistribute the latest TWAIN library in the same way.

Kind regards,

Loïc

glnoble
Posts: 11
Joined: Tue May 01, 2012 3:02 pm

Re: Twain DLL problem

Post by glnoble » Sun Jun 03, 2012 6:52 pm

Loic,

that would make sense if the .net version was ever loaded on my machine. It was not we had the old activex version gdpicture 5. the only DLL's are from the newest version we just downloaded when we purchased the .net version a couple weeks ago. there simply was never an older version of .net for it to be confused with.

what else can we try?

Greg

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Twain DLL problem

Post by Loïc » Sun Jun 03, 2012 7:03 pm

Hello,
what else can we try?
There is nothing else to try. You have probably done something wrong that you forgot.

So please try what I've suggested.

- Download the latest version: https://www.gdpicture.com/download/downl ... urenet.php
- Install on your dev computer.
- Redeploy and check you are using the shipped dll of the installed version.

glnoble
Posts: 11
Joined: Tue May 01, 2012 3:02 pm

Re: Twain DLL problem

Post by glnoble » Mon Jun 04, 2012 6:08 pm

Loic,

My apologies, I did the steps suggested and it works perfectly.

as always thanks for the wonderful support and quick response!
Greg

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Twain DLL problem

Post by Loïc » Mon Jun 04, 2012 6:21 pm

You are welcome Greg :)

Thank you for the return.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest