FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio: Problem with sample program Testimg.prg
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: Problem with sample program Testimg.prg
Posted: Mon Nov 17, 2008 04:40 AM
Antonio:

I'm writing to you because this program came with FiveWin. :-)
Running the test program Testimg.prg, found in the FWH\Samples folder I'm able to load BMPs, but when I try to load another graphic type (JPG, GIF, etc.) the program freezes and I have to kill it through the task manager. Thank you.
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Mon Nov 17, 2008 05:34 AM
Dear HunterEC,

See this following link. I hope it help.
http://fivetechsoft.com/forums/viewtopic.php?t=12799

Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Image-files
Posted: Mon Nov 17, 2008 07:56 AM

Hello HunterEC,

I added a application to the forum < Background-Tools >
You can test the different Graphic-formats.
Included is the new version of < Freeimage.dll > as well.
With the application you can create a working Exe-file.
As well you have a sample, how to work with image-files.

The was a info in the forum < Images > started with FW 2.0
I don't know the release-date
The first date-information i found in the readme-file was
FW/FWH/FW++ Build July 1 2003
=======================
If I know the release-date of 2.0, I can add the valid-ckeck for images
like : July 1 2003 = IF FW_VERSION >= 3.07 ......

With another application < Image-Viewer >, you can test images
as well.
The source for it, I will put in the forum, as soon it will be complete
finished.

Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Mon Nov 17, 2008 11:50 AM

Gustavo,

You can download TestImg.exe and FreeImage.dll from here to test it:

http://rapidshare.com/files/164611632/testimg.zip.html

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 05:09 AM

Antonio, Dutch & Uwe:

Thank you all for your help. :D

Just for learning purposes. Antonio:

Is there something wrong with the source code ? What's different on the Testimg.exe that you sent me ? Why I need the Freeimage.dll ?

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 09:33 AM

Antonio, should it be possible to open a wmf file with this exe?
Here it does not work.
Regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 09:59 AM

Gustavo,

> Is there something wrong with the source code ?

Its the same samples/TestImg.prg file

> What's different on the Testimg.exe that you sent me ?

There should not be any differences, except that we have used FWH 8.10 and latest Harbour that we have published.

> Why I need the Freeimage.dll ?

Because Class TImage uses it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 10:00 AM

Otto,

> should it be possible to open a wmf file with this exe?

FreeImage.dll may not support it.

WMF is 16 bits. Have you tried with EMF (enhanced metafile) ? (32 bits)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
New Freeimage.dll
Posted: Tue Nov 18, 2008 10:15 AM
Hello,

I use and tested the new Freeimage.dll SIZE : 2.084.864 => 27.07.2008
It works without problems.
( The old Freeimage.dll SIZE : 1.056.768 => 04.09.2005 )

The new DLL has double size now.

I added the WMF-type to the image-viewer and tested both DLL-versions
with WMF-files included in Microsoft-office ( date : 1998 )
and a new file from the internet.
There was no difference. The WMF-files didn't work.

From the original freeimage-doc-file ( it seems, WMF is not included ):



Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 07:12 PM

Otto,

You can use FWH Class TMetaFile to visualize a WMF file. EMF files are also supported.

Please review FWH\samples\evans.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: Problem with sample program Testimg.prg
Posted: Tue Nov 18, 2008 11:44 PM

Antonio:

I'm using Fivewin 8.05 and xHarbour September 2008. Is the Testimg.prg sample program supposed to work ok with this ? I want to develop a program using it (Testimg.prg) as base but I cannot manage to run it without lockups with images other than BMPs. The one that you sent me works fine ! What i'm doing wrong ?

Is using xHarbour ok or do I have to use the Harbour that you published ? If the latter, where I can download it ? Thank you very much.

Continue the discussion