Hi all.
This is a no brainer on GUI projects but is killing me on console ones: Where should I put the Proc(s) code ??
Acording to MASM examples should be something like:
include1
include2
etc
.............
TheProc PROTO ; not needed on EasyCode
...............
.data
..................
.code
main proc
.
invoke TheProc
.
invoke ExitProcess,0
main endp
..................
TheProc proc
.
code
more code
etc
.
ret
TheProc endp
..................
end main
My problem: If I put the Proc's code between Main and End, the theoretical "right" place:
Main EndP
TheProc Proc
blah
TheProc Endp
End start
I get syntax errors, undefined symbols, etc. all over the Proc(s), even its labels explode. In the other hand, placing the Proc(s)
outside of everything throws "
unresolved external symbol" (which seems legit):
Main EndP
End start
TheProc Proc
blah
TheProc Endp
The odd part: I'm very sure it was compiling fine with the first approach and then all of the sudden stopped working

In EasyCode we don't need PROTO (which I tested anyway) so, what am I doing wrong here ?? :shock: