News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

EN_SELCHANGE code from rich text edit

Started by rc, October 30, 2019, 09:52:33 PM

Previous topic - Next topic

jj2007

Quote from: rc on October 31, 2019, 02:21:21 AMwhen can i use the register itself as an argument.
You can use regs if they don't get "destroyed" by some other invoke


QuoteI know this is specific to the macro engine of masm, normally one would push the arguments onto the stack in reverse order and use the call instruction to invoke a function.

invoke puts args into the right order and checks their type and number, too.

rc

Quote from: jj2007 on October 31, 2019, 04:23:49 AM
invoke puts args into the right order and checks their type and number, too.

Ah ok, yes that makes sense, since i get usefull "compile" errors like: type mismatch but didn't realised that there isn't usually such thing in plain assembly. Good to know.

What comes into my mind: what is the difference between invoke and fn? Seen this in the generated code.

jj2007

Quote from: rc on October 31, 2019, 05:25:51 AMWhat comes into my mind: what is the difference between invoke and fn? Seen this in the generated code.
invoke is a built-in Masm macro, fn is a Masm32 macro.
invoke is Microsoft, fn is Hutch - check \Masm32\Help\HLHELP.chm for details.

More interesting than fn is the rv() macro: mov TheHandle, rv(CreateWindowEx, WS_EX_CLIENTEDGE, "edit", ....)

rc

Interesting! I will study the help files then. :)
Thanks a lot for helping, awesome forum and community! :)

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding