-->![Dev Dev](/uploads/1/2/6/1/126195415/236795601.png)
The aim of this Get Started series is to teach you how to write a desktop program in C++ using Win32 and COM APIs.
- The very first thing you need to do, before starting out in C, is to make sure that you have a compiler. What is a compiler, you ask? A compiler turns the program that you write into an executable that your computer can actually understand and run. If you're taking a course, you probably have one provided through your school.
- Since C programs always start at the main function, we need to call our other code from there, so a #include statement is needed. Some initial variables x, y, oper, and result are declared to store the first number, second number, operator, and final result, respectively.
- We need a C/C compiler, either GCC (GNU Compiler Collection) from MinGW or Cygwin (for Windows), or Visual C/C Compiler, or others. Quoting from the opengl.org: 'GLUT is designed for constructing small to medium sized OpenGL programs. While GLUT is well-suited to learning OpenGL and developing.
Run Dev/C.If you selected to run the program at the end of installation, you can skip to step 2,. Go to Start Menu All Programs Bloodshed Dev-C Dev-C. This should start the program. Create a New Source File.If you are prompted with a set up window, use all the default settings. Once the program opens, you need to create a new source file so you can start writing your first program.
In the first module, you'll learn step-by-step how to create and show a window. Later modules will introduce the Component Object Model (COM), graphics and text, and user input.
For this series, it is assumed that you have a good working knowledge of C++ programming. No previous experience with Windows programming is assumed. If you are new to C++, you can find learning material at the Visual C++ Developer Center. (This resource may not be available in some languages and countries.)
In this section
![Dev Dev](/uploads/1/2/6/1/126195415/236795601.png)
How To Run Opengl Program In Dev C++
Topic | Description |
---|---|
Introduction to Windows Programming in C++ | This section describes some of the basic terminology and coding conventions used in Windows programming. |
Module 1. Your First Windows Program | In this module, you will create a simple Windows program that shows a blank window. |
Module 2. Using COM in Your Windows Program | This module introduces the Component Object Model (COM), which underlies many of the modern Windows APIs. |
Module 3. Windows Graphics | This module introduces the Windows graphics architecture, with a focus on Direct2D. |
Module 4. User Input | This module describes mouse and keyboard input. |
Sample Code | Contains links to download the sample code for this series. |