flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > Analog Clock

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 22 Feb 2007, 07:34
Hi !

Here's an analog clock for Windows(32 bit) !


Description: This one's better !
Download
Filename: Aclock2.zip
Filesize: 5.64 KB
Downloaded: 975 Time(s)

Description: Analog Clock
Download
Filename: Aclock.zip
Filesize: 3.16 KB
Downloaded: 855 Time(s)



Last edited by m on 23 Feb 2007, 08:13; edited 1 time in total
Post 22 Feb 2007, 07:34
View user's profile Send private message Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 22 Feb 2007, 09:33
I beleive that code before CreateWindow
Code:
        push    d[ebx+WNDCLASSEX.hInstance]
        push    0
        push    0
        lea     ebx, [ebp-sizeof.RECT]
    

has unnecessary one [push 0] due to Olly Wink

_________________
Any offers?
Post 22 Feb 2007, 09:33
View user's profile Send private message Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko 22 Feb 2007, 11:03
Great!
I ever ask myself how an Analog clock may be made in asm Wink
thx!
Post 22 Feb 2007, 11:03
View user's profile Send private message Reply with quote
dead_body



Joined: 21 Sep 2005
Posts: 187
Location: Ukraine,Kharkov
dead_body 22 Feb 2007, 12:14
))))
Post 22 Feb 2007, 12:14
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 22 Feb 2007, 18:39
Nice job! (don't forget UPX can compress it, not that it really needs it though)
Wink
Post 22 Feb 2007, 18:39
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 23 Feb 2007, 09:19
dead_body wrote:
Quote:
))))


Sorry ! But i could not understand that.

See my second version, it has:
Better looks
Right click menu
Tray Icon support
Digital time
and Digits along with markers
Post 23 Feb 2007, 09:19
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7997
Location: 22° 15' N | 114° 10' E
YONG 23 Feb 2007, 13:34
Very nice! I like it! Smile

I guess, by "))))", dead_body means "sound or alarm function".

YONG
Post 23 Feb 2007, 13:34
View user's profile Send private message Visit poster's website Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 23 Feb 2007, 20:13
Still doesn't fixed, unless u pass hInst as a lParam and 0 an hInst to CreateWindow
Post 23 Feb 2007, 20:13
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 23 Feb 2007, 21:41
Yes, bigger look and much better!

Dare I ask ... anyone know how to make it stay always on top??
Post 23 Feb 2007, 21:41
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12737
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 23 Feb 2007, 21:56
Quote:

Dare I ask ... anyone know how to make it stay always on top??

i think SetWindowPos would make the window always on top if we set
HWND_TOPMOST for the second param.
Post 23 Feb 2007, 21:56
View user's profile Send private message Reply with quote
dead_body



Joined: 21 Sep 2005
Posts: 187
Location: Ukraine,Kharkov
dead_body 24 Feb 2007, 09:36
dead_body wrote:
))))

by that I want to tell, that your work is good.

But second version seems more pretty. Wink
Post 24 Feb 2007, 09:36
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7997
Location: 22° 15' N | 114° 10' E
YONG 25 Feb 2007, 09:28
dead_body wrote:
dead_body wrote:
))))

by that I want to tell, that your work is good.

Sorry, my wild guess was wrong! Sad

YONG
Post 25 Feb 2007, 09:28
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 26 Feb 2007, 07:22
asmfan wrote:
Quote:
has unnecessary one [push 0] due to Olly

Hey buddy !
The two "push 0" are for CreateWindowEx.
One is Handle to Menu and other is Handle to parent window.
By the way, who's Olly ?

Thanks every body !
Post 26 Feb 2007, 07:22
View user's profile Send private message Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 26 Feb 2007, 07:33
Olly - OllyDbg - the debugger;)
This catches when stack disbalancing on beginning and on the end of your app. Take a look and make corrections.
Post 26 Feb 2007, 07:33
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 26 Feb 2007, 07:50
O really ! Now I know.

But is there really a stack misbalance ?
I am going nuts and unable to find it.
Post 26 Feb 2007, 07:50
View user's profile Send private message Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 26 Feb 2007, 08:47
it's just additional DWORD on the stack and nothing special at all;) It's not harmful, but i pointed the place where it came from
Post 26 Feb 2007, 08:47
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 26 Feb 2007, 18:47
m wrote:
O really !


http://www.orlyowl.com/
Post 26 Feb 2007, 18:47
View user's profile Send private message Visit poster's website Reply with quote
peter



Joined: 09 May 2006
Posts: 63
peter 01 Mar 2007, 02:29
I wrote a clock program in C several months ago. May be, some ideas from it will be useful for you:

http://smallcode.weblogs.us/2006/07/04/hands-for-our-clock/
Post 01 Mar 2007, 02:29
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 01 Mar 2007, 08:31
The Clock looks better in XP.

It simply sucks in 98.
Post 01 Mar 2007, 08:31
View user's profile Send private message Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko 01 Mar 2007, 12:56
@peter: very good job! And comment is very interesting....are you going to do a FASM-source version?
Post 01 Mar 2007, 12:56
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.