Author Topic: My third 64 bit console app...  (Read 745 times)

Mikl__

  • Member
  • ****
  • Posts: 702
Re: My third 64 bit console app...
« Reply #15 on: May 26, 2018, 01:08:23 PM »
¡Hola felipe!
Examples for Win64 Iczelion tutorial from 8 to 11 pages are Win x64 console samples

felipe

  • Member
  • ****
  • Posts: 970
  • Eagles are just great!
Re: My third 64 bit console app...
« Reply #16 on: May 26, 2018, 03:12:39 PM »
 :icon14: Ok, thanks Mikl__. I think i will have a look there.
Felipe.

jj2007

  • Member
  • *****
  • Posts: 8832
  • Assembler is fun ;-)
    • MasmBasic
Re: My third 64 bit console app...
« Reply #17 on: May 27, 2018, 09:30:34 PM »
Maybe it is worth using the fixed values, but not to cause every time the GetStdHandle function?

Hi Mikl,

Hard-coded constants are a no-no, for obvious reasons. But one option could be to call GetStdHandle once in an initialisation routine, and to store the result in a global variable. That would save (in 64-bit land) 7 bytes per "print". In theory, however, the return value of GetStdHandle might change during the lifetime of a program - unless there is MSDN documentation that it remains constant.