flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
fatygant
irrelevant answer. that's why deleted...
Last edited by fatygant on 16 Sep 2012, 11:10; edited 1 time in total |
|||
![]() |
|
Jimmus
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. |
|||
![]() |
|
f0dder
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 ![]() _________________ ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.