construction:
main module:
include 'win32a.inc'
include 'a.inc'
include 'b.inc'
call x1 ;(from a.inc) - passes ok
......
in a.inc:
proc x1
enter
....
invoke x2,arg1,arg2 ;from b.inc - returns a 'unknown size of op' error.
return
in b.inc:
proc x2,.arg1,.arg2
enter
....
return
Why? All the procedures compiles without errors. But 'invoke' causes a error.
in this case other calling macro ('stdcall') compiles, but result crushes.
main module:
include 'win32a.inc'
include 'a.inc'
include 'b.inc'
call x1 ;(from a.inc) - passes ok
......
in a.inc:
proc x1
enter
....
invoke x2,arg1,arg2 ;from b.inc - returns a 'unknown size of op' error.
return
in b.inc:
proc x2,.arg1,.arg2
enter
....
return
Why? All the procedures compiles without errors. But 'invoke' causes a error.
in this case other calling macro ('stdcall') compiles, but result crushes.
Afternoon, Zet.
Any particular reason you've got dots in front of your args?
....
proc x2,.arg1,.arg2
Cheers,
Scronty
Any particular reason you've got dots in front of your args?
....
proc x2,.arg1,.arg2
Cheers,
Scronty
Hi.
"invoke" is not equal to "stdcall".
"invoke proc" is equal to "stdcall ". You should use invoke only for indirect calls, for example API import functions. For your procedures you must use "stdcall" or simply "call" if there is no stack passed arguments.
Regards.
"invoke" is not equal to "stdcall".
"invoke proc" is equal to "stdcall ". You should use invoke only for indirect calls, for example API import functions. For your procedures you must use "stdcall" or simply "call" if there is no stack passed arguments.
Regards.
Well, without points same result (not compiling). Reason was :) i tried to post exact source.
Thx, I found that StdCall Proc. But it isn't solve the problem.
I'm now sure problem is in my other code. Thanks to all. Closed
Thx, I found that StdCall Proc. But it isn't solve the problem.
I'm now sure problem is in my other code. Thanks to all. Closed