Windows programing with Dev-C++

Dev-C++ is good IDE for programming in C++. Considering it supports MinGW and MSVC (Rarely used with MSVC). It has syntax highlighting, debugger, profiler, TO DO lists and many more. It is best for small and medium size project development.

Basic requirements

Personal Computer

Download ( ?? )
23. Just don’t talk about it.

Microsoft Windows

Download (Are you nuts !!)
If you have option for Operating System. Windows XP must be the last one, so stop here and turn off this tutorial and switch to any operating systems designed for humans.

MinGW

Download Direct Link (SourceForge)
MinGW is a open source development suit for Microsoft Windows. It stands for MINimalist Gnu for Windows. It is Windows port of famous GCC ( Gnu Compiler Collection ) development suit. It supports many languages like C/C++/Objective C/Java/Fortran77/Ada.

Dev-C++ (4.9.9.2) /wxDev-C++ (6.10.2)

Download (4.9.9.2)
Download (6.10.2)
It comes WITH MinGW or Without MinGW. You can always download latest MinGW or even compile its source from older compiler. You have to download both Dev-C++ 4.9.9.2 and wxDev-C++ 6.10.2 as wxDev is just an Executable file which runs on the old 4.9.9.2 base.

Tutorial

All optionals are recommended.

Assuming we have a PC and it has a windows.

To know how to install Dev-C++ Click Here

Extract Dev-C++ 6.10.2.

Extract it to Dev-Cpp/bin and rename the devcpp.exe to olddevcpp.exe and rename devcpp

Install MinGW (only if you have installed the Dev-C++ without MinGW).

Click Here

[optional] Install/set the path of MinGW/bin or Dev-Cpp/bin in user path variable.

Click Here

[optional] Create a C++ Development Command Prompt.

coming soon

Start Dev-C++

Now click on File -> New -> Project.

windows programming a

Select the langauge C++ most probable. Type the name of the project. Select the type as Windows Project.

windows programming b

Enter the path to save the project.

windows programming c

Now you will get a template of windows program. Save the unsaved main.cpp file. If you don’t know what to write in it. Click here to get a template program.

windows programming d

Before compiling the project you must include the library path of gdi32 in project. for this Right click on project name in project inspector -> Project Options.

windows programming e

In the linker section type -lgdi32

windows programming f

Now compile it or Build the project.

windows programming g

We get a beautiful output.

About Shishir Sharma 'criss'

Shishir is a hacker, software developer and a bachelor of electronics & communication engineering. He is a problem solver, enthusiastic for technologies. He can speak in Java, Python, Perl, PHP, Curl etc; Fluent in C, C++, GNU/Linux. He is moderator at LUG-Jaipur and contributor of wordMint. He loves action movies and Counter Strike.
This entry was posted in Programming and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>