flat assembler
Message board for the users of flat assembler.

Index > Windows > BI_JPEG and BI_PNG in win32 fasm

Author
Thread Post new topic Reply to topic
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 17 Jan 2012, 12:04
can some one tell me why compiler complain when i use ,
mov [binfo.biCompression],BI_JPEG
Post 17 Jan 2012, 12:04
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20404
Location: In your JS exploiting you and your system
revolution 17 Jan 2012, 12:59
How have you defined binfo?

It would help if you showed your code!
Post 17 Jan 2012, 12:59
View user's profile Send private message Visit poster's website Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 17 Jan 2012, 14:16
i will attach source with this
Actually i want to use jpg image in dialogbox instead bmp file


Description:
Download
Filename: TST1.zip
Filesize: 4.63 KB
Downloaded: 248 Time(s)

Post 17 Jan 2012, 14:16
View user's profile Send private message Send e-mail Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 17 Jan 2012, 15:12
BI_JPEG is not defined in the standard include files in fasm. Here are all the definitions
Code:
BI_RGB = 0
BI_RLE8 = 1
BI_RLE4 = 2
BI_BITFIELDS = 3
BI_JPEG = 4
BI_PNG = 5    
Post 17 Jan 2012, 15:12
View user's profile Send private message Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 17 Jan 2012, 16:39
thanx
Then should i change the inc file?
and if i change it compiler complain about DIB_RGB_COLORS
so what can i do ?
Post 17 Jan 2012, 16:39
View user's profile Send private message Send e-mail Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1657
Location: Toronto, Canada
AsmGuru62 17 Jan 2012, 17:45
@mns: take a look at the Windows .H files and add the missing definitions into some file of yours or modify the FASM original .INC file.
Post 17 Jan 2012, 17:45
View user's profile Send private message Send e-mail Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 18 Jan 2012, 13:36
i have changed GDI32.INC file in fasmw16935\INCLUDE\EQUATES
but compiler complain about DIB_RGB_COLORS !!
Please help!
Post 18 Jan 2012, 13:36
View user's profile Send private message Send e-mail Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Jan 2012, 13:47
Is it so hard to type in Google "define DIB_RGB_COLORS" and to look in the returned results. The first one will show you that DIB_RGB_COLORS=0. Very Happy
Post 18 Jan 2012, 13:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 18 Jan 2012, 16:02
^^^ haha I use the same search keyword lol
"#define CONSTANT_NAME"
Post 18 Jan 2012, 16:02
View user's profile Send private message Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 18 Jan 2012, 16:06
Thanx JohnFound,I got the point.
But I'm asking is, is it ok to change .INC files?
And if so,why the original files don't come with these values?
Post 18 Jan 2012, 16:06
View user's profile Send private message Send e-mail Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 18 Jan 2012, 16:16
Better would be to have your own INC (which could be placed along with the official includes), so when you download the latest fasm you don't need to merge changes, just decompress into the existing fasm folder and allow overwrite.
Post 18 Jan 2012, 16:16
View user's profile Send private message Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 18 Jan 2012, 16:59
Is there a better way to use jpeg files as resource in a dialogbox application?
Post 18 Jan 2012, 16:59
View user's profile Send private message Send e-mail Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 18 Jan 2012, 19:42
ask JohnFound and he'll tell you to use PNGs.
Post 18 Jan 2012, 19:42
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Jan 2012, 20:48
Actually I use GIFs because I have portable library only for GIF format. Very Happy
Post 18 Jan 2012, 20:48
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 244
Location: US
Yardman 22 Jan 2012, 01:02
[ Post removed by author. ]


Last edited by Yardman on 04 Apr 2012, 04:48; edited 1 time in total
Post 22 Jan 2012, 01:02
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 22 Jan 2012, 08:39
Yardman, it is part of FreshLib and is freely available. It is located in "freshlib/graphics/giflib.asm".
Post 22 Jan 2012, 08:39
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.