flat assembler
Message board for the users of flat assembler.
Index
> Windows > error in creating a dialog box from dialog box |
Author |
|
mns 12 Dec 2011, 10:55
Can someone please help me how to correct folloiwig error!!!!!
when run the application not opening DLG3 (code is attached with this as zip file)
Last edited by mns on 12 Dec 2011, 11:19; edited 1 time in total |
|||||||||||
12 Dec 2011, 10:55 |
|
typedef 12 Dec 2011, 11:07
1 MB ? lol,
|
|||
12 Dec 2011, 11:07 |
|
mns 12 Dec 2011, 11:18
typedef why? what is the wrong.I can't understand
|
|||
12 Dec 2011, 11:18 |
|
mns 12 Dec 2011, 14:20
Thanx JohnFound, I don't have much knowladge in programming.(may be because I am learning it by my self)but can understand 1-3.
But why in assembly language we cannot use lot of bitmaps? and if we want to develop a application which need lot of resources(may be bitmaps) what will we do? (i'v attached the corrected code with this)
|
|||||||||||
12 Dec 2011, 14:20 |
|
JohnFound 12 Dec 2011, 14:43
mns, of course you can use bitmaps of whatever size you want.
It is, how to say it - "matter of style". The assembly applications are known as optimal, small and fast. As an illustration your image pp1.bmp is 24bit bitmap. The size of this image is 220kbytes. There are only 2 colors in the image - if you save it in 2 color bitmap - the file will be only 10kbytes in size. If you use some compressed format, the size becomes even smaller: In PNG - 472bytes! Another level of approach is to draw the buttons on the fly - your buttons are very simple and you simply don't need bitmaps for such simple images. |
|||
12 Dec 2011, 14:43 |
|
mns 12 Dec 2011, 15:45
Hey now I understand what you have said.
Thank you very much JohnFound.I really appriciate your thought. Thanx again Bro! |
|||
12 Dec 2011, 15:45 |
|
AsmGuru62 12 Dec 2011, 15:51
Images, like ICO and BMP can be loaded from files by LoadImage API.
This way they do not take room in EXE file and they can be loaded when needed minimizing the application startup time. |
|||
12 Dec 2011, 15:51 |
|
mns 12 Dec 2011, 17:17
Thanx! AsmGuru62
|
|||
12 Dec 2011, 17:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.