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.
Posted on 2003-05-15 05:18:13 by Zet
Afternoon, Zet.

Any particular reason you've got dots in front of your args?

....
proc x2,.arg1,.arg2

Cheers,
Scronty
Posted on 2003-05-15 06:10:27 by 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.
Posted on 2003-05-15 06:11:00 by JohnFound
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
Posted on 2003-05-15 06:27:55 by Zet