flat assembler
Message board for the users of flat assembler.
Index
> Windows > JPEG, GIF and other stream formats |
Author |
|
Vasilev Vjacheslav 04 Jun 2005, 08:53
After very hard work i finished my program, and i want to introduce source code
for it.
_________________ [not enough memory] |
|||||||||||
04 Jun 2005, 08:53 |
|
Vasilev Vjacheslav 04 Jun 2005, 10:06
small addiction: this program can display jpg, jpeg, gif, dib, bmp formats
|
|||
04 Jun 2005, 10:06 |
|
f0dder 04 Jun 2005, 13:08
Hm, are you both doing CreateStreamOnHGlobal with fDeleteOnRelease=TRUE, and freeing the the memory manually afterwards?
|
|||
04 Jun 2005, 13:08 |
|
donkey7 06 Jun 2005, 18:41
what about supporting png's? just wondering
|
|||
06 Jun 2005, 18:41 |
|
f0dder 19 Jun 2005, 12:26
Quote:
What I meant is that I see you pass TRUE on your CreateStreamOnHGlobal call, but it also seems like you're both manually freeing the memory, as well as calling the picture release method. If this is true, you're introducing a double-free bug, which can cause heap corruption (and does this reproducably on NT4). If you're not doing the double-free, sorry for misreading your code. |
|||
19 Jun 2005, 12:26 |
|
alorent 01 Jul 2010, 19:47
Hello,
I just found this great example. I'm having a hard time assembling it. For example "enter" and "return" instructions produce errors in FASM. Also, procs defined like it is in the code is not accepted: proc _centerwnd, lpWnd Not sure if I'm missing includes... Any help to assembly the code with latest FASM? Thanks! |
|||
01 Jul 2010, 19:47 |
|
LocoDelAssembly 01 Jul 2010, 20:13
The example is terribly old so you need to remove all ocurrences of "enter" and replace "return" with "ret". Also, it seems that at that time the locals where handled differently.You'll have to wrap them in a locals/endl block to make them work because otherwise them will end up being executable code.
As for ole32.inc you can fix that by changing "apia" in the path to "api" but I have no solution for oleaut32.inc, you'll have to search if it is available somewhere in this forum. |
|||
01 Jul 2010, 20:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.