C++ Application Development with Code::Blocks
Biplab Kumar Modak
Format: PDF / Kindle (mobi) / ePub
Using Code::Blocks it's possible for C++ developers to create application consistency across multiple platforms. This book takes you through the process from installation to implementing advanced features, all with a user-friendly approach.
- Successfully install and configure Code::Blocks for C++ development
- Perform rapid application development with Code::Blocks
- Work with advanced C++ features including code debugging and GUI toolkits
Code::Blocks is a free C++ IDE designed to meet the extensive demands of C++ developers. Code::Blocks is very extensible and can be easily configured to maintain a consistent look and feel in your application across multiple platforms. If you are looking to develop cross-platform applications using C++, then this book is for you.
This book provides practical explanations for application development with C++ and Code::Blocks. You will get to grips with the many aspects of professional application development with the help of real-life examples. As you proceed through the chapters, you will see yourself effectively working with and implementing advanced C++ features in your application.
The book begins with an introduction to Code::Blocks and detailed instructions on how to install and configure it. You are then introduced to the process of application development with the help of real-life examples. Throughout the course of the book, you will learn how to develop GUI-based applications painlessly. The book also places special emphasis on debugging the application. The later sections take a closer look at using third party C++ libraries and how to implement wxWidgets to develop cross-platform applications. By the end of this book, you will know everything you need to know about C++ application development with Code::Blocks.
What you will learn from this book
- Install and configure Code::Blocks
- Develop console-based C++ applications
- Learn about Windows application development
- Understand the role of GUI toolkits
- Implement advanced Code::Block features
This is a comprehensive tutorial with step-by-step instructions on how to develop applications with Code::Blocks.
Who this book is written for
This book is for C++ developers who wish to use Code::Blocks to create applications with a consistent look and feel across multiple platforms. This book assumes that you are familiar with the basics of the C++ programming language.
developer at Yomari Incorporated Pvt. Ltd. He is currently working on data warehouse technology and business intelligence. He is a blogger at www.codeincodeblock.com. He writes writes articles related to software development using Code::Blocks IDE and has four years of experience in it. He has completed a Bachelor's degree in Computer Engineering at Pulchowk Campus IOE Kathmandu, Nepal. I would like to thank my friend Bibek Subedi and my brother Bharat Subedi who helped me while reviewing this
stop debugging. Summary In this chapter we learned app debugging with Code::Blocks using GNU GDB debugger. We learned various debugging related tools provided by Code::Blocks. Subsequently we learned debugging single and multiple apps. In the next chapter we'll discuss app development for Windows. [ 59 ] Windows App Development with Code::Blocks In the previous chapters, focus of our app development was on console based app. This is also known as text only app as console based apps can only
wizard generates a boilerplate code of an event driven app. In order to understand event driven programming we shall be using following example to learn and understand it. We shall be using native Win32 API for this example. Win32 API is the base of several toolkits. Thus we should have an understanding of it in order to understand other toolkits. Let's create another GUI app and name it App10. Replace wizard generated code with the following code. Also enable Unicode support as per the steps
the Events tab. Add the existing OnFileOpen event handler to EVT_TOOL. This will connect the existing OnFileOpen() function to this toolbar button. So clicking on this toolbar button will emulate navigating to the File | Open menu options. 22. Follow previous steps and connect the Zoom in and Zoom out toolbar buttons to OnViewZoomIn and OnViewZoomOut event handlers respectively. [ 100 ] Chapter 5 23. Our app is now complete. Hit F9 key to build and run. Upon successful build app will be run
C++ option and click on the Next button. Choose file path and name in the next window and click on the Finish button to complete wizard. Then type the following code in the editor: #include