flat assembler
Message board for the users of flat assembler.
Index
> Windows > BI_JPEG and BI_PNG in win32 fasm |
Author |
|
mns 17 Jan 2012, 12:04
can some one tell me why compiler complain when i use ,
mov [binfo.biCompression],BI_JPEG |
|||
17 Jan 2012, 12:04 |
|
revolution 17 Jan 2012, 12:59
How have you defined binfo?
It would help if you showed your code! |
|||
17 Jan 2012, 12:59 |
|
mns 17 Jan 2012, 14:16
i will attach source with this
Actually i want to use jpg image in dialogbox instead bmp file
|
|||||||||||
17 Jan 2012, 14:16 |
|
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 ? |
|||
17 Jan 2012, 16:39 |
|
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.
|
|||
17 Jan 2012, 17:45 |
|
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! |
|||
18 Jan 2012, 13:36 |
|
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.
|
|||
18 Jan 2012, 13:47 |
|
typedef 18 Jan 2012, 16:02
^^^ haha I use the same search keyword lol
"#define CONSTANT_NAME" |
|||
18 Jan 2012, 16:02 |
|
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? |
|||
18 Jan 2012, 16:06 |
|
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.
|
|||
18 Jan 2012, 16:16 |
|
mns 18 Jan 2012, 16:59
Is there a better way to use jpeg files as resource in a dialogbox application?
|
|||
18 Jan 2012, 16:59 |
|
typedef 18 Jan 2012, 19:42
ask JohnFound and he'll tell you to use PNGs.
|
|||
18 Jan 2012, 19:42 |
|
JohnFound 18 Jan 2012, 20:48
Actually I use GIFs because I have portable library only for GIF format.
|
|||
18 Jan 2012, 20:48 |
|
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 |
|||
22 Jan 2012, 01:02 |
|
JohnFound 22 Jan 2012, 08:39
Yardman, it is part of FreshLib and is freely available. It is located in "freshlib/graphics/giflib.asm".
|
|||
22 Jan 2012, 08:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.