Forum > Packages and Libraries

Migrating a CodeTyphon scanner application to Lazarus

(1/2) > >>

hrayon:
Hello, I have a problem migrating a CodeTyphon scanner application to Lazarus.
The problem occurs when communicating between DelphiTwain and the scanner driver.
DelphiTwain got here, compatible with the lazarus:
http://www.kluug.net/delphitwain.php
The scanner is the Kodak i1210.
In CodeTyphon 6.0, the scanner call normally occurs, and the following window attached appears and everything works fine.
I tried some versions of Lazarus, with exactly the same program, and the window does not appear and does not present an error.
The versions I tested are:
Lazarus 1.8 + fpc 3.11;
Lazarus 1.6.4 + fpc 3.0.2;
Lazarus 1.9 + fpc 3.11.

To simulate the error you can use the example program that comes with DelphiTwain in the folder:
DelphiTwain \ examples \ Lazarus

It should be something specific with the Kodak twain driver. Using the TWAIN 2 Sample Data Source emulator (https://sourceforge.net/projects/twain-samples/files/?source=navbar) the Lazarus versions work.

I do not know how to make the kodak driver work for Lazarus.

(using google translator)

Handoko:
Do you know ct2laz? You should try it, maybe it is what you need.
https://bitbucket.org/avra/ct2laz/

hrayon:
Hello Handoko, thanks for the suggestion!
But from what I understand ct2laz converts a specific CodeTyphon package to Lazarus, but DelphiTwain is already for Lazarus.
I could not even quote CodeTyphon, I quoted just because it works on it and it does not work on Lazarus, specifically with the Kodak i1210 Twain driver.
It may be something more specific, in the compilation/code of FPC and not of Lazarus, but when there is no error message, it is difficult to solve the problem.
In the case, the executable tries to present a user interface through the Twain "protocol" in the dll developed by Kodak, but the window does not appear, nor does it give an error.
I get stuck on CodeTyphon.

ttomas:
Try to compare source of DelphiTwain in CT, maybe CT Team made some changes and report.

Thaddy:
Post that question to CodeTyphon forum, they broke it....

Navigation

[0] Message Index

[#] Next page

Go to full version