flat assembler
Message board for the users of flat assembler.
Index
> Windows > simple window crushes |
Author |
|
Tomasz Grysztar 08 Oct 2004, 08:50
Two corrections are needed:
1) Initialize cbSize field of WNDCLASSEX before calling RegisterClassEx: Code: mov [wc.cbSize],sizeof.WNDCLASSEX 2) Use "return" macro instead of "ret" to exit the procedure. |
|||
08 Oct 2004, 08:50 |
|
Nomad 08 Oct 2004, 09:22
cbSize was initializied, I forgot to type it here
uhu, problem was in RET opcode thank you |
|||
08 Oct 2004, 09:22 |
|
Nomad 08 Oct 2004, 09:29
err.. another problem
there is no DEVMODE structure... MASM implementation doesn't match.. how to add this struct? |
|||
08 Oct 2004, 09:29 |
|
Nomad 08 Oct 2004, 15:36
well, I tryed to add this structure by myself, but it don't want to work ;(
here's begin: Code: struct DEVMODE .dmDeviceName db 32 dup(?) .dmSpecVersion dw ? .dmDriverVersion dw ? ;.... and so on but compiler gives me an error: Extra characters on line: DEVMODE.dmDeviceName db 32 dup(?) how to avoid this? |
|||
08 Oct 2004, 15:36 |
|
Tomasz Grysztar 08 Oct 2004, 15:53
Use
Code: .dmDeviceName rb 32 |
|||
08 Oct 2004, 15:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.