In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

OLE problem with Harbour and MinGW

Xailer professional forum in English
Responder
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

OLE problem with Harbour and MinGW

Mensaje por Ingo JH »

This is a multi-part message in MIME format.
------=_NextPart_000_0082_01CE8150.0ADA2B80
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0083_01CE8150.0ADA2B80"
------=_NextPart_001_0083_01CE8150.0ADA2B80
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Dear Jose Gimenez,
I was using TwainControlX.ocx from ScianSoft as ActiveX component in my=20
project built with xHarbour and BCC in Xailer 2.7.5 without any problem.
Now compiling and linking this project under Xailer 3.02 with Harbour =
and=20
minGW this GPF occurs.
I am using the libhbwin.a modified by you. The same GPF occurs too with =
the unmodified=20
libhbwin.a.
Could you help me again please?=20
Regards
Ingo
------=_NextPart_001_0083_01CE8150.0ADA2B80
Content-Type: text/html;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-15" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 9.00.8112.16496">
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=3D2>Dear Jose Gimenez,<BR><BR>I was using =
TwainControlX.ocx from=20
ScianSoft as ActiveX component in my <BR>project built with xHarbour and =
BCC in=20
Xailer 2.7.5 without any problem.<BR><BR>Now compiling and linking this =
project=20
under Xailer 3.02 with Harbour and <BR>minGW this GPF =
occurs.</FONT></DIV>
<DIV><FONT size=3D2></FONT>Â</DIV>
<DIV><IMG src=3D"cid:[email=556161443E9F44ABA1E7DB4D46EDCB1F@IngoHP]556161443E9F44ABA1E7DB4D46EDCB1F@IngoHP[/email]"></DIV>
<DIV><FONT size=3D2></FONT><BR><FONT size=3D2>I am using the libhbwin.a =
modified by=20
you. The same GPF occurs too with the unmodified =
<BR>libhbwin.a.<BR><BR>Could=20
you help me again please? </FONT></DIV>
<DIV><BR><FONT =
size=3D2>Regards<BR><BR>Ingo<BR></FONT></DIV></BODY> </HTML>
------=_NextPart_001_0083_01CE8150.0ADA2B80--
------=_NextPart_000_0082_01CE8150.0ADA2B80
Content-Type: application/octet-stream;
name="OLE.jpg"
Content-Transfer-Encoding: base64
Content-ID: <[email=556161443E9F44ABA1E7DB4D46EDCB1F@IngoHP]556161443E9F44ABA1E7DB4D46EDCB1F@IngoHP[/email]>
/9j/4AAQSkZJRgABAAEAYABgAAD//gAfTEVBRCBUZWNobm9sb2dpZXMgSW5j LiBWMS4wMQD/2wBD
AAUFBQgFCAwHBwwMCQkJDA0MDAwMDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0N DQ0NDQ0NDQ0NDQ0N
DQ0NDQ0NDQ3/xADSAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIB AwMCBAMFBQQEAAAB
fQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBka JSYnKCkqNDU2Nzg5
OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SV lpeYmZqio6Slpqeo
qaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX2 9/j5+v/AAAsIAEwA
ogEBEQD/2gAIAQEAAD8A+vdT1CDSbWW+um8uC2jeWVsE7URSzHA5PAPAGT0H NcVN4o1ewsLnVr7T
YoLW3sri8jAvS8+YU8xIbiL7KqQ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2E8kZpzafbSRxxPFE0cBRokKKVjaP/AFbRqRhGjwNhXBX+ HFJbaZaWJDW0EMJW
JIFMcaIRDEWMUQ2gYijLMY4x8ibm2gZNQ2ej2Ngyva20FuyiUKYokjKiVxJK AVUECWQCSQD77gO2
WANQWXhzStMuZL6ysrS2up93mzw28Ucsm9g7eZIiB33Phm3E5YBjzzTtP8Pa ZpMstxYWlraTXJzN
JBBFFJKSxYmR0QNISxLEsTySepqVtHsWhis2toDbQFGihMUZiiaIgxNHHt2I YzgoVAKEArg0PpNl
LbSWclvA1tOztLC0SGKRpGLyNJGVKuZHJdywJZiWbJOapP4X0drwam1hZtfJ tK3JtoTOpQbEIm2e
YNqgKuG+VQAMAAVMvh3S1vTqws7Qagc5uxbxC4Py+X/r9nm/c+T733fl6cVa fTrR1mR4IWW8H+kq
Y0InzGIv3wIxL+7VY/n3fuwE+6AKxE8D+HltzZjS9OFs7rK0Is7fyjIqsqyG Py9hdVZlViNwVmAO
Ca6G1tIbCJLa1jSCGJVSOONQiIoGAqIoCqoHACgADgCsKDwnpqQi2nhjvIYb l7q3S5jimFtI7lz5
G6PKBXZ2jJLSJuKq4QKq6Wn6RHp9xc3QZ5Zr1w8jyFSVVFCRwptRAsMQ3FFI ZtzyOzszk1r0UV//
2Q==
------=_NextPart_000_0082_01CE8150.0ADA2B80--

Attached files
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

OLE problem with Harbour and MinGW

Mensaje por Ingo JH »

Jose,
it seems to be a minGW problem. Compiled and linked with Harbour and BCC
there's no problem.
Regards
Ingo
"Ingo" <support@mandantwin.com> schrieb im Newsbeitrag
news:[email=51e3c373@svctag-j7w3v3j....]51e3c373@svctag-j7w3v3j....[/email]
Dear Jose Gimenez,
I was using TwainControlX.ocx from ScianSoft as ActiveX component in my
project built with xHarbour and BCC in Xailer 2.7.5 without any problem.
Now compiling and linking this project under Xailer 3.02 with Harbour and
minGW this GPF occurs.
I am using the libhbwin.a modified by you. The same GPF occurs too with the
unmodified
libhbwin.a.
Could you help me again please?
Regards
Ingo
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OLE problem with Harbour and MinGW

Mensaje por jfgimenez »

Ingo,
sorry for the delay. I'm aware of random problems with OLE in Harbour.
There is another user who also has problems with a scanner OCX, but
sadly I'm not able to reproduce the GPF here. Please, send me a small
sample to check it here. I hope I could catch it.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

OLE problem with Harbour and MinGW

Mensaje por Ingo JH »

Jose,
don't mention it.
Here ist the sample.
Before running you must install the trial version of TwainControlX from
http://www.ciansoft.com/twaincontrolx/default.asp
Regards
Ingo
--

Attached files TestScan.zip (6.3 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OLE problem with Harbour and MinGW

Mensaje por jfgimenez »

Ingo,
sorry for the delay.
I've been playing with this for a few hours, and, in fact, there is a
problem... it works in my 3 computers!
It's exactly the same problem that has another user, Bingen. Well, both
you are using the same OCX, which I didn't know before. But there are a
few differences. Bingen sent me a sample that uses an old version of the
OCX. He wrote an article in our blog to show how to use it:
http://xailer.info/esp/?p=234 Now, the link is broken, but you may
download it from here: https://www.dropbox.com/s/u0cohhlpfe7jhy0/Escaner.zip
When I downloaded your sample, I had to unregister the old OCX and
download and install the lastest version from Sciansoft. The curious
thing is that this last OCX only recognizes TWAIN scaners, and my HP
Scanjet 3800 was not detected. Finally, I could install a TWAIN driver
for it, and your sample is working fine here. If I re-register the old
OCX, then it recognizes my scanner as TWAIN as well as WIA, and even it
detects my smartphone ;-)
In order to run both versions of the OCX, alternatively, I had to set
(or avoid) its property 'password'. This property only exists in the old
version, but it's absolutely needed. ITOH, it doesn't exists in the
lastest version, so I had to comment it out. That's all. However, the
result is that the lastest version only recognizes TWAIN, while the old
version detects TWAIN, WIA and smartphones.
In short, the main problem remains the same... I cannot reproduce the
problem here. And trust me, I've tried every thing that is in my hands.
BTW, due to the problems that has Bingen with this OCX, I decided to
write a class to support scaners directly from Xailer. This class uses
the WIA interface, which is shipped in windows XP and laters versions.
Here you are an early-bird sample, if you would like to test it:
https://www.dropbox.com/s/df7g60znsm4wk55/escaner.rar It's in spanish,
sorry. To scan, just use one of the last buttons: "Escanear (COM)" and
"Escanear (OLE)". The first one should work in every windows version
(from XP), and the second one should work in Vista and later. Of course,
the main goal is to use COM in order to support also XP, although it's
much more difficult to develop the class itself.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

OLE problem with Harbour and MinGW

Mensaje por Ingo JH »

Jose,
thank you for your endevaour solving my problem.
As I posted at the 16th this problem occurs only when linked with minGW.
Linked with BCC it runs without problems.
My working computer is a windows 8/64bit. The TwainControlX.ocx version is
2.4.0.30. Both TWAIN and WIA drivers are detected. If you need this ocx,
please tell me.
Now trying your escaner Class with COM. Only WIA is detected as you said.
But Escaner (OLE) causes the error in the attached error.log
Regards
Ingo
"Jose F. Gimenez" <jfgimenezAM]"@wanadoo.es> schrieb im Newsbeitrag
news:[email=51e6fb5d@svctag-j7w3v3j....]51e6fb5d@svctag-j7w3v3j....[/email]
> Ingo,
>
> sorry for the delay.
>
> I've been playing with this for a few hours, and, in fact, there is a
> problem... it works in my 3 computers!
>
> It's exactly the same problem that has another user, Bingen. Well, both
> you are using the same OCX, which I didn't know before. But there are a
> few differences. Bingen sent me a sample that uses an old version of the
> OCX. He wrote an article in our blog to show how to use it:
> http://xailer.info/esp/?p=234 Now, the link is broken, but you may
> download it from here:
> https://www.dropbox.com/s/u0cohhlpfe7jhy0/Escaner.zip
>
> When I downloaded your sample, I had to unregister the old OCX and
> download and install the lastest version from Sciansoft. The curious thing
> is that this last OCX only recognizes TWAIN scaners, and my HP Scanjet
> 3800 was not detected. Finally, I could install a TWAIN driver for it, and
> your sample is working fine here. If I re-register the old OCX, then it
> recognizes my scanner as TWAIN as well as WIA, and even it detects my
> smartphone ;-)
>
> In order to run both versions of the OCX, alternatively, I had to set (or
> avoid) its property 'password'. This property only exists in the old
> version, but it's absolutely needed. ITOH, it doesn't exists in the
> lastest version, so I had to comment it out. That's all. However, the
> result is that the lastest version only recognizes TWAIN, while the old
> version detects TWAIN, WIA and smartphones.
>
> In short, the main problem remains the same... I cannot reproduce the
> problem here. And trust me, I've tried every thing that is in my hands.
>
> BTW, due to the problems that has Bingen with this OCX, I decided to write
> a class to support scaners directly from Xailer. This class uses the WIA
> interface, which is shipped in windows XP and laters versions. Here you
> are an early-bird sample, if you would like to test it:
> https://www.dropbox.com/s/df7g60znsm4wk55/escaner.rar It's in spanish,
> sorry. To scan, just use one of the last buttons: "Escanear (COM)" and
> "Escanear (OLE)". The first one should work in every windows version (from
> XP), and the second one should work in Vista and later. Of course, the
> main goal is to use COM in order to support also XP, although it's much
> more difficult to develop the class itself.
>
>
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
--

Attached files Error.log (11 B)Â
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

OLE problem with Harbour and MinGW

Mensaje por Ingo JH »

Jose,
I have tried now the Bingen sample. Compiled with Harbour.
If linked with BCC it is running without any problem.
But linked with minGW there is the same GPF as I posted.
HB's AutoOle seems not work correct with minGW.
Regards
Ingo
"Jose F. Gimenez" <jfgimenezAM]"@wanadoo.es> schrieb im Newsbeitrag
news:[email=51e6fb5d@svctag-j7w3v3j....]51e6fb5d@svctag-j7w3v3j....[/email]
> Ingo,
>
> sorry for the delay.
>
> I've been playing with this for a few hours, and, in fact, there is a
> problem... it works in my 3 computers!
>
> It's exactly the same problem that has another user, Bingen. Well, both
> you are using the same OCX, which I didn't know before. But there are a
> few differences. Bingen sent me a sample that uses an old version of the
> OCX. He wrote an article in our blog to show how to use it:
> http://xailer.info/esp/?p=234 Now, the link is broken, but you may
> download it from here:
> https://www.dropbox.com/s/u0cohhlpfe7jhy0/Escaner.zip
>
> When I downloaded your sample, I had to unregister the old OCX and
> download and install the lastest version from Sciansoft. The curious thing
> is that this last OCX only recognizes TWAIN scaners, and my HP Scanjet
> 3800 was not detected. Finally, I could install a TWAIN driver for it, and
> your sample is working fine here. If I re-register the old OCX, then it
> recognizes my scanner as TWAIN as well as WIA, and even it detects my
> smartphone ;-)
>
> In order to run both versions of the OCX, alternatively, I had to set (or
> avoid) its property 'password'. This property only exists in the old
> version, but it's absolutely needed. ITOH, it doesn't exists in the
> lastest version, so I had to comment it out. That's all. However, the
> result is that the lastest version only recognizes TWAIN, while the old
> version detects TWAIN, WIA and smartphones.
>
> In short, the main problem remains the same... I cannot reproduce the
> problem here. And trust me, I've tried every thing that is in my hands.
>
> BTW, due to the problems that has Bingen with this OCX, I decided to write
> a class to support scaners directly from Xailer. This class uses the WIA
> interface, which is shipped in windows XP and laters versions. Here you
> are an early-bird sample, if you would like to test it:
> https://www.dropbox.com/s/df7g60znsm4wk55/escaner.rar It's in spanish,
> sorry. To scan, just use one of the last buttons: "Escanear (COM)" and
> "Escanear (OLE)". The first one should work in every windows version (from
> XP), and the second one should work in Vista and later. Of course, the
> main goal is to use COM in order to support also XP, although it's much
> more difficult to develop the class itself.
>
>
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OLE problem with Harbour and MinGW

Mensaje por jfgimenez »

Ingo,
> As I posted at the 16th this problem occurs only when linked with
> minGW. Linked with BCC it runs without problems.
> My working computer is a windows 8/64bit. The TwainControlX.ocx
> version is 2.4.0.30. Both TWAIN and WIA drivers are detected. If you
> need this ocx, please tell me.
I've tested both MinGW and BCC, resulting in exactly the same behaviour.
When Bingen advised me about his problem, I was using Win8/32, but now
I'm using Win8/64. In both cases, the sample runs in my computer without
any GPF. Moreover, I've tested it in other computers and other OS under
VBox. The only issues are those I told before (about TWAIN and WIA
devices detection and the presence/ausence of the property password).
I'm affraid, I'm not able to reproduce the problem. I thought that one
difference between me and you is that I use a demo version of the OCX.
But I said it to Bingen and he deregistered his OCX and installed a demo
one, and still did GPF. So, how can I solve a problem that I cannot
reproduce? I'll continue researching on it, but at the same time, I'll
continue to develop the own class.
> Now trying your escaner Class with COM. Only WIA is detected as you said.
> But Escaner (OLE) causes the error in the attached error.log
Thanks for your test. Is I said before, OLE is not important, since the
goal is to use COM. Have you tried to scan a page?
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Sommus
Mensajes: 310
Registrado: Vie Jul 24, 2009 9:39 pm

OLE problem with Harbour and MinGW

Mensaje por Sommus »

Jose,
Necessito saber como está o desenvolvimento da classe para digitalização. Estou desenvolvendo um projeto e já testei várias ferramentas. Grande maioria possui recursos limitados ou ocorre erros em algumas situaçíµes. Testei o exemplo que postou nesse artigo e é, sem dúvidas, a mais completa. Então, gostaria saber sobre como tenho acesso a ela (valores, documentação, etc.).
Saludo,
Sebastião Sérgio.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OLE problem with Harbour and MinGW

Mensaje por jfgimenez »

Sebastião,
> Necessito saber como está o desenvolvimento da classe para
> digitalização. Estou desenvolvendo um projeto e já testei
> várias ferramentas. Grande maioria possui recursos
> limitados ou ocorre erros em algumas situaçíµes. Testei o
> exemplo que postou nesse artigo e é, sem dúvidas, a mais
> completa. Então, gostaria saber sobre como tenho acesso a
> ela (valores, documentação, etc.).
[SPANISH]
Por ahora está parada, ya que los dos usuarios que tení­an problemas con
el OCX de ScianSoft están funcionando. No obstante, continuaré su
desarrollo cuando pueda.
[ENGLISH]
For now it's stopped, since both users which had problems with
ScianSoft's OCX are working now. However, I'll continue developing it
when possible.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder