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
Hi !

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


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

Description: Analog Clock
Download
Filename: Aclock.zip
Filesize: 3.16 KB
Downloaded: 384 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: 401
Location: Russian
asmfan
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
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: 188
Location: Ukraine,Kharkov
dead_body
))))
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
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
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: 8000
Location: 22° 15' N | 114° 10' E
YONG
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: 401
Location: Russian
asmfan
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
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: 8469
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
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: 188
Location: Ukraine,Kharkov
dead_body
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: 8000
Location: 22° 15' N | 114° 10' E
YONG
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
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: 401
Location: Russian
asmfan
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
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: 401
Location: Russian
asmfan
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
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
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
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
@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-2019, Tomasz Grysztar.

Powered by rwasa.