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.
TwainGetSourceCount( parameter )
Re: TwainGetSourceCount( parameter )
Hello,
Have to targeted your application for x86 processor?
Kind regards,
Loïc
Have to targeted your application for x86 processor?
Kind regards,
Loïc
Re: TwainGetSourceCount( parameter )
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?
Who is online
Users browsing this forum: No registered users and 1 guest