flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to fill day of week array |
Author |
|
ATV 26 Jul 2007, 07:22
Is there easy way to get list of day_of_week in short format from user settings.
I am adding weekday names in my alarm program http://board.flatassembler.net/topic.php?t=5086 One easy way would be read them in ini file and overwrite 4*7 bytes array, but Im trying to do it automaticly. Code: weekdays4 db 'Mon Tue Wed Thu Fri Sat Sun ',0 ;in ini file with dummy x weekdays4=Ma Ti Ke To Pe La Su x |
|||
26 Jul 2007, 07:22 |
|
shoorick 27 Jul 2007, 07:38
yes, it works ok
|
|||
27 Jul 2007, 07:38 |
|
peter 29 Jul 2007, 23:04
Use GetLocaleInfo function with LOCALE_SABBREVDAYNAME1, LOCALE_SABBREVDAYNAME2, etc.
|
|||
29 Jul 2007, 23:04 |
|
ATV 31 Jul 2007, 07:05
peter, thanks. I knew there must be some API to get it, I just didn't find it. Magic words "Locale Information" and there are more useful local stuff.
|
|||
31 Jul 2007, 07:05 |
|
kohlrak 31 Jul 2007, 09:00
Agreed. Windows has alot of fancy features like this that are nice to have, we just don't know where they are or, worse off, that they even exist. For all i know, there could be a function in windows that does the message loop for me. There might even be a way to clear the console window without throwing out a bunch of spaces after resetting position to 0,0 or using system("CLS") which is slow.
|
|||
31 Jul 2007, 09:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.