flat assembler
Message board for the users of flat assembler.

Index > Windows > Study of the file Template.asm

Author
Thread Post new topic Reply to topic
Traxler



Joined: 30 Oct 2014
Posts: 12
Traxler
Hello 'World',

There are two points that cause me problem in this file :

1) What does 'FASMWIN32 ' and why not use STATIC example?

2) At what point is launched WindowProc because I see no conditional jump to get there ?

Thanks for help.

Wink
Post 31 Oct 2014, 13:33
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
1) FASMWIN32 is a class name for a main application window. Main application window should not be a predefined class, like "STATIC" or "EDIT" or "BUTTON".

2) If you seach the code and check where else "WindowProc" is mentioned - you will see that it is used to initialize WNDCLASS structure, which in turn used to
register a class name ("FASMWIN32"). Basically, you telling Windows: "Here is a pointer to WindowProc function, call it when needed." That is how it is "launched". There is no jump to it - Windows calls it for events, or messages, which are the basis for any windows program.
Post 31 Oct 2014, 14:13
View user's profile Send private message Send e-mail Reply with quote
Traxler



Joined: 30 Oct 2014
Posts: 12
Traxler
thank you for help, but the second point is quite complicated to understand for a beginner .Would there be a place to find more detailed info of help?
Post 31 Oct 2014, 14:53
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
Try this site - it seems a good place to start:
http://www.win32developer.com/tutorial/windows/windows_tutorial_2.shtm
Post 31 Oct 2014, 18:12
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.