Documents

forgers-win32-tutorial.pdf

Categories
Published
of 108
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Description
theForger's Win32 API Tutorial [ contents | #winprog ] Welcome to Version 2.0 of theForger's Win32 API Tutorial This tutorial attempts to get you started developing with the Win32 API as quickly and clearly as possible. It is meant to be read as a whole, so please read it from beginning to end before asking questions... most of them will probably be answered. Each section builds on the sections before it. I have also added some solutions to common errors in Appendix A. If you ask me a
Transcript
  theForger's Win32 API Tutorial [ contents | #winprog ] Welcome to Version 2.0 of theForger's Win32 API Tutorial This tutorial attempts to get you started developing with the Win32 API as quickly and clearly as possible. It is meant to be read as a whole , so  please  read it from beginning to end before asking questions... most of them will probably be answered. Each section builds on the sections before it. I have also added some solutions to common errors in Appendix A. If you ask me a question that is answered on this page, you will look very silly.    Download the complete example Source Code which is refered to throughout this document.    Or Download the entire tutorial (source included) for browsing in the convenience of your own harddrive. This file may not include minor changes such as spelling corrections that are present on the website. If you are viewing this locally or on another website, visit the #winprog website for the current official copy.    Feeling generous?    Need more help? Contents    Basics 1. Getting Started 2. A Simple Window 3. Handling Messages 4. Understanding The Message Loop 5. Using Resources 6. Menus and Icons 7. Dialogs, GUI coders best friend 8. Modeless Dialogs  file:///C|/dona/forgers-win32-tutorial/tutorial/index.html (1 of 3) [7/8/2003 4:34:43 PM]  theForger's Win32 API Tutorial 9. Standard Controls: Button, Edit, List Box, Static 10. But what about... (Dialog FAQ)     Creating a simple application 1. App Part 1: Creating controls at runtime 2. App Part 2: Using files and the common dialogs 3. App Part 3: Tool and Status bars 4. App Part 4: Multiple Document Interface     Graphics Device Interface 1. Bitmaps, Device Contexts and BitBlt 2. Transparent Bitmaps 3. Timers and Animation 4. Text, Fonts and Colours     Tools and Documentation 1. Recommended Books and References 2. Free Visual C++ Command Line Tools 3. Free Borland C++ Command Line Tools     Appendices    Appendix A: Solutions to Common Errors     Appendix B: Why you should learn the API before MFC     Appendix C: Resource file notes   I've had reports that the source code presented in the documents itself doesn't display line breaks  properly in very old versions of Netscape, if you encounter this problem please refer to the code in the source files included in the zip download. Feeling generous? You may use this tutorial for absolutely no charge, however there are costs associated with hosting it on the web. If you found it to be of use to you and want to give something back, I would be grateful for donations of any amount to help pay for this website. This page gets approximately 15,000 hits a month, and it adds up after a while :) Once again, there is absolutely no obligation to pay, and you won't get anything in addition to what's already here, but if you want to help out, that would be great... just click the PayPal image. Enjoy the tutorial,Brook file:///C|/dona/forgers-win32-tutorial/tutorial/index.html (2 of 3) [7/8/2003 4:34:43 PM]  theForger's Win32 API Tutorial  I would like to thank the following for the contributions they've made: Yih Horng, Todd Troxell, T Frank Zvovushe, Suzanne Lorrin, Seth McCarus, Crispina Chong, John Crutchfield, Scott  Johnstone, Patrick Sears, Juan Demerutis, Richard Anthony, Alex Fox, Bob Rudis, Eric Wadsworth, Chris Blume. As well as those who have simply written to say they've found the tutorial useful. It's much appreciated!   Need more help? In general I will freely answer any questions that I receive by email, or point you in the direction of a resource that may be of assistance. At the moment I am busy with a couple of large ongoing projects and don't have the time to work on custom examples or small software projects. I would however be willing to entertain job offers :) Feel free to contact me. Copyright © 1998-2003, Brook Miles (theForger). All rights reserved. file:///C|/dona/forgers-win32-tutorial/tutorial/index.html (3 of 3) [7/8/2003 4:34:43 PM]  Tutorial: Getting Started [ contents | #winprog ] Getting Started What this tutorial is all about This tutorial is intended to present to you the basics (and common extras) of writing programs using the Win32 API. The language used is C, most C++ compilers will compile it as well. As a matter of fact, most of the information is applicable to any language that can access the API, inlcuding Java, Assembly and Visual Basic. I will not however present any code relating to these languages and you're on your own in that regard, but several people have previously used this document in said languages with quite a bit of success. This tutorial will not   teach you the C language, nor will it tell you how to run your perticular compiler (Borland C++, Visual C++, LCC-Win32, etc...) I will however take a few moments in the appendix to provide some notes on using the compilers I have knowledge of. If you don't know what a macro  or a typedef   are, or how a switch()  statement works, then turn back now and read a good book or tutorial on the C language first. Important notes Sometimes throughout the text I will indicate certain things are IMPORANT to read. Because they screw up so many people, if you don't read it, you'll likely get caught too. The first one is this: The source provided in the example ZIP file is not optional!  I don't include all the code in the text itself, only that which is relevant to whatever I'm currently discussing. In order to see how this code fits in with the rest of the program, you must   take a look at the source provided in the ZIP file. And here's the second one: Read the whole thing!  If you have a question during one section of the tutorial just have a little patience and it might just be answered later on. If you just can't stand the thought of not knowing, at least skim or search (yes computers can do that) the rest of the document before asking the nice folks on IRC or by email. file:///C|/dona/forgers-win32-tutorial/tutorial/start.html (1 of 4) [7/8/2003 4:34:43 PM]
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks