2006
Win32 Programming

Hi there! My name is Pravin Paratey and welcome to my spot on the web. This page contains Windows programming resources for the beginner and intermediate windows programmer.
If you’re new to windows programming, take a look around.
Table of Contents
- Introduction
- Lesson 1 – Your first win32 application
- Lesson 2 – Creating a basic window
- Lesson 3 – Resources: Icons, Dialogs and Menus
- Lesson 4 – Code Documentation and Code Versioning
- Feedback
Thank you!
65 Responses (rss) (trackback)
Karthic
Tutorial is really good for beginners.
wav wizard
i like your tutorials, havent tried them yet cause i just downloaded and copied the source for the html but from what i see so far its just what i need. thank you.
Mike
do you have any suggestion on how to a month calendar control to a dialog box. i add the control through msvisual c++ to the dialog, but when the program runs the dialog wont show up.
i click a button to show the dialog box CreateDialog(…). if i can get the box up and running i can get the info from it. initcommoncontrolsex is not reconized upon compile but the structure INITCOMMONCONTROL. any help would be appreciated.
Mike
Narendra
I am new to learn windows programming. I like your windows programming tutorial. But i want to learn how to add buttons, regarding that i request you to send me the code to be added in resource file and in interface file in the project.
eth0
Great site.
Don’t stop here, keep adding to it.
As said, it would be nice to move onto creating a functional interface. (a calculator for instance?)
Abood
Hi,i like ur tutorial.
but i hope that will be more and more.
jealousy
hi,tutorials r very good(at least for me) and more?
++can you write about windows prog and opengl?(using together)
again thanks for sharing knowledge
seth
Hey there! Your guide was great!! I am a n PC-addicted boy from Greece. Till the time I read your guide I knew PHP, Pascal, a little Pearl and C for command line. I was looking to a good guide and I found it!! Thanx!!(my site isn’t working yet so don’t enter)
PeterJ
Thanks for taking the time to document your learning and posting it out on the Web for others! I appreciate how much work this takes to put everything together especially with the illustrations.
I look forward to lesson 4!
Chandan Raj Rupakheti
I tried to follow up some books for hello world and other stuffs. Nothing seems to be going well. Your tutorial just rocked the show.
Victor Barriga
thank for posting this tutorials they been a lot of help in understanding win 32 programming, keep up the good work.
Lee
Hi,
It’s great that you have made this tutorial include Dev-C++. There isn’t all that many Win32 tutorials that do.
Thanks.
getachew
lesson 4 of the windows programming page is not shown fully and will not let for other lessons to be followed.
john
I’m learning
good work Sir!
Vinay
Nice one! please add more stuff!
programmer
awesome tutorial, are you going to continue it? This tutorial is very easy to understand.
Sean
Great tutorial – really. Super easy to follow, and I understood what was going on!
Please continue!
-Sean.
Liam Nevin
This has been the most easy to understand tutorial on windows application programming I’ve ever used. Please add more ASAP I can’t wait to see more added
suresh
this is very nice to read , thankx a lot
Thanks
suresh
Tim
These tutorials are very good. Thanks for taking the time and effort to post them.
corey
thank you for your tutorials!
i am a c programmer but i have yet to move to windows and thank you this will be will alot! hope to see more lessons asap
Bee
Good introductory stuff… looking forward to more.
Chinthaka Wijethunge
Hi!
Thank you to share your knowledge and I’m appriciating your great work as a young computer programmer.
Good Luck!
Bye!
Jose
The best and clearer tutorial. Great help.
Thanks
José
bostjan
Nice and clear.
Thx for your time and work.
I have not red a book, better than this tutorial (Sams, O’relly, Kochan…).
Why you don’t write a own book?
Jawahar
Hey….this is really a good one….i think u haven’t mentioned all about Windows Programming in detail here…..System programming in windows and all that stuff isn’t covered here…it would be fantastic if u cover all those topics here…anywayz…great work…… :)
and one more help..can u plz provide me with more information on Windows Programming……thanx a lot…have fun
Anonymous
Hello!
I like your tutorials. Maybe you should add a simple GUI programs explaning step by step.
Keep up good work!
Thanks
atri
well, it is a great tutorial.
but not complete????so bad!!
looking for it’s completeness.
Regards
atri
deepak sharma
i am student of mca from mdu rohtak , if you help me to send the notes of windows programing so that i can learn .
your truly
deepak sharma
Bhushan Chaudhari
Such a nice book Sir
I learn lot of basic things….
If u have any more doc plz send me……..
neha
Im new to learn windows programming
n ur tutorials help me a lot
but i want to learn frm basics…
wht it is actually..
Guna
Hi,
I liked your turorail a lot… As a beginner i could easily understand and follow the tutorials.. the exampls are very simple and at the same time covers all the essentail basics… thanks for sharing the knowledge, looking forward to see advanced toipics…
then,.. im trying to do somth but facing problems….. this might sound very simple, again as i said im a beginner to windows programming…
In my application i want to send messages to an another application window (a CAD application basically)..
I am able to find the handle of the window, but not able to send messages.. Can u post some turorial or somethng that talks about sending messages to other API windows..
I am also facing problem finding handle of child window.. here’s my problem exactly..
I have a window opened, the name of the window being “Microsoft Visual C++”… and this window has a child window named “test.c”..
i am able to find the window handle of the main window (“Microsoft Visual C++”) through below statement…
hwndtest = findwindow(NULL,”Microsoft Visual C++”);
but when i use below statement to find child window, the function just returns a NULL value..
hwndtest1 = findwindowex(hwndtest,NULL,NULL,”test.c”);
Can somebody help me with the exact syntax to do the above thing…
Thanks in advance for your help..
~ Guna
Holger
I learnt a lot in less than 30min.
Thank you so much !
Please continue.
selami
thx for your tutorial.it’s very nice.
gf
AWESOME, but where’s the rest of it – Adding a dialog window???
Michael
Great tutorial!!!Clear, concise, and nice. The best way for someone to learn fundamentals of Windows programming. Please, where we can find the rest of this excellent tutorial?
Chethan
Hi It was really nice…
BUT I was not able to download the source files for lesson 4…
Probably you forgot to hyperlink the location…
Plz look at this matter…
Beside that, It was simply awesome
hash
Excellent!!!!!!!!!!!!!!!!
waiting for some more
Stella
Simple, clear and useful. Thank you for taking the time for making it easy for beginners like me.
Looking forward to more such well explained tutorials
jitendra
good
ripsy
nice tutorial
thx
YDNAR
Good article and thanks.
Keep going.
Lueng
I enjoy programming by learn from this site. I like it very much and I want to be a Programmer in the future. I hope you will make great site forever.
Thank you very much
***It not correctly to write/read because I’m not writing in English not fluently.
Dargo
Immense help; thanks; I was programming mainfarmes (IBM) in cobol, assembler for 16 years, then CLIPPER for 16 years. Couldn’t figure out windows programming as i was used to “readable” and “nested” code; then message queue became clear to me. You explained this; now it is easier. Thanks and keep posting more please.
freiza
continue the tutorial
If you say I can complete the remaining tutorial in the very
style of yours…
Pravin
Thank you everybody for the encouraging remarks. I’m trying to find time to continue this tutorial, hopefully I should get over my inertia and begin soon.
rajesh
i really enjoyed.its a good work.i got many terms.
vikas
sir i wouid like to know that which one out of msg queue and window procedure is better window messeges type??
Harsh
I needed a quick practical guide to Windows programming to attempt my assignment. Your article just is simply awesome. Thanks Pravin.
0x5b785d
The link to Introduction is broken, but the others are working.
mithun
TYVM!
Ashutosh
This was impeccable thoughts on windows programing i ever came across
ta
deepak.........
Good …work???
Keep it…UP…
where can i go for ADVANCED Windows Programming?
Any popular Books or sites>>>>
Mustafiz
Thanks for tutorial. I’m searching this from long time. Now I found it. Bcz I’m very intrsting in windwos programming. Bcz I wana be Windows Programmer. So send Other Simple programms for prectise.
thank………………..
Jayapal Chandran
nice hints… i just gazed a few and have to look into the site later…
it is just a minute passed since i opened this page… and one point made me feel that this could be a useful resource for beginners, so if there could be a discussion on this site that would be nice for people who would like to exchange their ideas.
voila, here i am …
gaurav singh
This tutorial helps me a lot,,
i trudge between many books this help me to make a excilent starting and powerfull thinking and understanding ablity to creating complex windows applications.
I hope this text continously updated and improved
Thanking you
With Warm regards
GAURAV SINGH
Nick
GREAT TUTORALS BTW
questios: lol
how do you program a grid like coordinate system used for games?
can you use arrays to store the data of each cell?
how do you put the coordinate system into a picture u can move around in with a mouse?
is there a simpler way of coding “pop up messages” that i can code differnt input formats?
sorry, i might not be making sense
i’ve got tons of other questions too if its ok with you?
Evens
I just want to tell that the link for the introduction section of this tutorial is :
http://pravin.insanitybegins.com/win32/introduction
and not:
http://pravin.insanitybegins.com/win32/intro.php
like is it told everywhere on this site.
Sangita
Hey….this is really a good one….i think u haven’t mentioned all about Windows Programming in detail here…..System programming in windows and all that stuff isn’t covered here…it would be fantastic if u cover all those topics here…anywayz…great work……
and one more help..can u plz provide me with more information on Windows Programming……thanx a lot…have fun
008
I was able to extrapolate the information in your tutorials to other languages that can interface with C (like the D programming language). This is a good thing.



Phate
Rather good tutorial, Good work. keep g33king =P