TwainGetSourceCount( parameter )

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
gplott
Posts: 2
Joined: Wed Sep 26, 2012 3:31 pm

TwainGetSourceCount( parameter )

Post by gplott » Wed Sep 26, 2012 3:45 pm

In the provided example app and in a test app I created TwainGetSourceCount works fine and recognizes the network scanner. However when I try the same thing in our real app no scanners are recognized. The main difference, as far as I can tell, is that the example app is a simple form whereas in my real application the GdPictureImaging component is on a popup form that is part of the Microsoft SCSF archictecture. I'm guessing that there is a problem with passing the handle parameter. What exactly is this parameter for? So far I've tried the following:
'For i As Integer = 1 To _ogdpictureimaging.TwainGetSourceCount(Me.Handle)
'For i As Integer = 1 To _ogdpictureimaging.TwainGetSourceCount(Me.Parent.Handle)
'For i As Integer = 1 To _ogdpictureimaging.TwainGetSourceCount(Me.ParentForm.Handle)
' For i As Integer = 1 To _ogdpictureimaging.TwainGetSourceCount(0)

Below are the log entries. Anyh help would be greatly appreciated I'm evaluting the component for our project and need to produce results quickly.

#GdPicture.NET.twain.client Log Start. Version: 662

RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
GetValidHwnd: Creating Proxy window.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
Start: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
standard DSM library can not be loaded.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
End: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
GDTWAIN_Mgr: Null DSM Entry.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
Start: UnloadSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
Window Proxy Destroyed !
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
End: UnloadSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
#GdPicture.NET.twain.client Log Stop.

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

Re: TwainGetSourceCount( parameter )

Post by Loïc » Wed Sep 26, 2012 7:30 pm

Hello,

Have to targeted your application for x86 processor?

Kind regards,

Loïc

gplott
Posts: 2
Joined: Wed Sep 26, 2012 3:31 pm

Re: TwainGetSourceCount( parameter )

Post by gplott » Thu Sep 27, 2012 4:41 pm

Uggh. That seems obvious now. Sorry, I'm sure you get tired of answering the same question. I targeted the project that I was using gdPictue in but not the entire application. The tech lead is not going to go for targeting the entire app for x86. Is this a limitation of using TWAIN itself, the TWAIN driver, or just gdpicture?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest