The standard way of starting a new program is by creating a small amount of starter code that calls a winmain function.
This seems fine for the average C programmer who has to go out of his way to do it any other way, but in assembly language it seems redundant.
I was curious how other people start their code.
This seems fine for the average C programmer who has to go out of his way to do it any other way, but in assembly language it seems redundant.
I was curious how other people start their code.
If its a Dialog App then I use
If its a regular window app of course its more complicated but I don't bother writing a winmain proc.
Start:
invoke GetModuleHandle,eax
mov gIst,eax
invoke DialogBoxParam,eax,100,0,addr DlgProc,0
invoke ExitProcess,0
invoke InitCommonControlsEx,0
END Start
If its a regular window app of course its more complicated but I don't bother writing a winmain proc.