flat assembler
Message board for the users of flat assembler.
Index
> Main > Automatically setting the date of your copyright |
Author |
|
Madis731 17 Nov 2004, 10:14
There are just some strings, but what if I want to put them in some exe's properties (in the version tab I mean). I think they'd have to be separated.
Another suggestion - shouldn't the name and the beginning of copyright be configurable like: Code: __author equ 'TheBiggestAndTheGreatest' __beginyear equ '2001' ;... ;... copyright: db 'Copyright © ',__author,' ',__beginyear,'-',__stringyear Now you can put it in an include and let the author and beginyear be easily changable. EDIT: Fixed db to equ Thanks to vid for noticing Last edited by Madis731 on 17 Nov 2004, 15:06; edited 1 time in total |
|||
17 Nov 2004, 10:14 |
|
vid 17 Nov 2004, 10:53
that won't work, because "db 'Copyright',__author"will insert address of 'TheBiggestAndTheGreatest' string behind 'Copyright' bytes, not the string. You should use something like:
Code: __author equ 'TheBiggestAndTheGreatest' copyright: db 'Copyright ',__author |
|||
17 Nov 2004, 10:53 |
|
pelaillo 17 Nov 2004, 13:14
Useful indeed
Thanks revolution. |
|||
17 Nov 2004, 13:14 |
|
Matrix 17 Nov 2004, 23:42
But copyright is not forever, and uses system clock right?
|
|||
17 Nov 2004, 23:42 |
|
revolution 18 Nov 2004, 02:28
Copyrights in most countries last until 50 after the authors death. But check with your local office before taking my word for it.
If your system clock is wrong then of course the dates and times above will also be wrong. Don't forget about the wrap around at 31 bits and/or 32 bits. Respectively 2038/01/19 03:14:08 and 2106/02/07 06:28:16. However the calculation will be wrong after 2100-02-28 because 2100 is not a leap year. |
|||
18 Nov 2004, 02:28 |
|
revolution 18 Nov 2004, 02:37
Madis731:
You can use the strings in your exe properties also. For example see the FASMW.ASM Code: version version_info,VOS__WINDOWS32,VFT_APP,VFT2_UNKNOWN,LANG_ENGLISH+SUBLANG_DEFAULT,0,\ 'FileDescription','flat assembler',\ 'LegalCopyright',<'Copyright ',0A9h,' 1999-2004 Tomasz Grysztar.'>,\ 'FileVersion',IDE_VERSION_STRING,\ 'ProductVersion',VERSION_STRING,\ 'OriginalFilename','FASMW.EXE' you can replace 2004 with ',__stringyear,' |
|||
18 Nov 2004, 02:37 |
|
Matrix 18 Nov 2004, 05:44
i'd recommend this :
Copyright 1994- or Copyright from 1994 |
|||
18 Nov 2004, 05:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.