Author Topic: EN_SELCHANGE code from rich text edit  (Read 426 times)

jj2007

  • Member
  • *****
  • Posts: 9802
  • Assembler is fun ;-)
    • MasmBasic
Re: EN_SELCHANGE code from rich text edit
« Reply #15 on: October 31, 2019, 04:23:49 AM »
when can i use the register itself as an argument.
You can use regs if they don't get "destroyed" by some other invoke


Quote
I 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

  • Regular Member
  • *
  • Posts: 16
Re: EN_SELCHANGE code from rich text edit
« Reply #16 on: October 31, 2019, 05:25:51 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

  • Member
  • *****
  • Posts: 9802
  • Assembler is fun ;-)
    • MasmBasic
Re: EN_SELCHANGE code from rich text edit
« Reply #17 on: October 31, 2019, 06:54:58 AM »
What 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

  • Regular Member
  • *
  • Posts: 16
Re: EN_SELCHANGE code from rich text edit
« Reply #18 on: October 31, 2019, 07:10:45 AM »
Interesting! I will study the help files then. :)
Thanks a lot for helping, awesome forum and community! :)

daydreamer

  • Member
  • ****
  • Posts: 943
  • watch Chebyshev on the backside of the Moon
Re: EN_SELCHANGE code from rich text edit
« Reply #19 on: November 01, 2019, 03:53:04 AM »
welcome to forum :thumbsup:
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

rc

  • Regular Member
  • *
  • Posts: 16
Re: EN_SELCHANGE code from rich text edit
« Reply #20 on: November 01, 2019, 06:53:59 AM »
welcome to forum :thumbsup:

Thanks daydreamer :).