Home | Site Map
Sunlight

Windows Programming Tutorials

Introduction

This site provides a number of tutorials, articles and projects related to Windows programming in various forms.

Windows API tutorial, which introduces basic aspects of Windows GUI programming.

DirectX tutorial, which introduces the various aspects of DirectX.

DirectX .NET framework, a large tutorial in intermediate and advanced .NET programming, using DirectX. It provides a thorough advanced-level introduction to the C++ .NET programming language, developing a powerful class library. It also provides some intermediate-level C#.NET and VB.NET sample programs.

Windows programming Frequently Asked Questions (FAQ) page, which gives answers to many questions asked by newcomers to Windows programming. Read this document before posting a question on a bulletin board (such as http://www.cprogramming.com/).

Troubleshooting

Depending on your compiler, some of the code examples may not compile. I have used Unicode compatible functions throughout, and some of these may not be supported in your compiler. If you encounter errors using these functions, you can replace them with equivalents according to the following table:

Function or definition Equivalent
_tmain main
_sntprintf(buffer, len, _T("format"), ...) _stprintf(buffer, _T("format"), ...)
or
sprintf(buffer, "format", ...)
_T TEXT

Thanks

Thanks to (in no particular order): nv, adrianxw, lightatdawn, artc, Stee, doubleanti for support! It's good to know someone out there is watching.