flat assembler
Message board for the users of flat assembler.
Index
> Windows > fasm vs C, white backgrounds on STATIC windows |
Author |
|
fatygant 14 Sep 2012, 17:54
irrelevant answer. that's why deleted...
Last edited by fatygant on 16 Sep 2012, 11:10; edited 1 time in total |
|||
14 Sep 2012, 17:54 |
|
Jimmus 14 Sep 2012, 21:08
Never mind. I found it.
I can't use the exact same code that the c compiler gives me. You know that unnecessary garbage the c compiler puts in? Well one of them was a command line parameter to the main proc--the hInstance. If I don't use the C preludes, there are no parameters to my main proc. Once I used GetModuleHandle to give me the hInstance, and changed the references, it worked fine. The thing on the stack it was using for the module handle was a return address into ntdll somewhere. As long as I used the same value of hInstance when I called RegisterClass and CreateWindowEx, it worked OK except for this weird background thing. |
|||
14 Sep 2012, 21:08 |
|
f0dder 15 Sep 2012, 22:49
Jimmus wrote: I can't use the exact same code that the c compiler gives me. So yes, there's a bit more work needed for assembly _________________ - carpe noctem |
|||
15 Sep 2012, 22:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.