To Antonio: Problem with sample program Testimg.prg

To Antonio: Problem with sample program Testimg.prg

Postby HunterEC » Mon Nov 17, 2008 4: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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby dutch » Mon Nov 17, 2008 5:34 am

Dear HunterEC,

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

Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Image-files

Postby ukoenig » Mon Nov 17, 2008 7: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HunterEC » Tue Nov 18, 2008 5: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 ?
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Otto » Tue Nov 18, 2008 9:33 am

Antonio, should it be possible to open a wmf file with this exe?
Here it does not work.
Regards,
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Tue Nov 18, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

New Freeimage.dll

Postby ukoenig » 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 ):

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Tue Nov 18, 2008 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HunterEC » 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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Giovany Vecchi, Google [Bot] and 76 guests