Problem displaying picture

Started by Charles Dietz, April 02, 2008, 06:18:39 PM

Previous topic - Next topic

Charles Dietz

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?

Elias Montoya


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.


TechSupport

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?

TechSupport

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.