PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Charles Dietz on April 02, 2008, 06:18:39 PM

Title: Problem displaying picture
Post by: Charles Dietz on April 02, 2008, 06:18:39 PM
I am trying to display JPG and TIFF files using the picture control by first converting them to BMP files using a GDI conversion by Patrice Terrier.  The code works perfectly when compiling from JellyFish as a stand alone, but putting it into a General section, it keeps giving the following error:

The PowerBasic Compiler returned an error during compiling

Error Number = 481
Error Description = Mismatch with prior definition
     Flink As LIST_ENTRY PTR

The code has the following
Type LIST_ENTRY
    Flink As LIST_ENTRY Ptr
    Blink As LIST_ENTRY Ptr
End Type

Any ideas why?
Title: Re: Problem displaying picture
Post by: Elias Montoya on April 03, 2008, 04:28:20 AM

I have had a similar issue... one of the types in include files are not taken in consideration...
Never knew why was it. I just added it again and i forgot the problem.

Title: Re: Problem displaying picture
Post by: TechSupport on April 03, 2008, 09:48:51 AM
Hi Charles,

Does Patrice's code use any #IF #ENDIF processing directives? That could screw up FireFly's pre-processor.

Can you email me the code or a sample project so I can hunt down the source of the problem?
Title: Re: Problem displaying picture
Post by: TechSupport on April 03, 2008, 09:29:15 PM
Hi Charles,

A fair number of TYPEs in your code are duplicates (or slight variations of) ones found in Win32api.inc. FireFly automatically includes the Win32api.inc file so it is clashing with your declarations. In the code you sent me you can comment out (or simply delete) everything from your first line in  the Form1 general section all the way down to where the Type structure "ImageCodecInfo" begins.

Hope this helps.