News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

My third 64 bit console app...

Started by felipe, May 24, 2018, 02:24:32 PM

Previous topic - Next topic

Mikl__

¡Hola felipe!
Examples for Win64 Iczelion tutorial from 8 to 11 pages are Win x64 console samples

felipe

 :icon14: Ok, thanks Mikl__. I think i will have a look there.

jj2007

Quote from: Mikl__ on May 25, 2018, 03:48:52 PMMaybe 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.