Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying C++ Application Development with Code::Blocks
  • Table Of Contents Toc
C++ Application Development with Code::Blocks

C++ Application Development with Code::Blocks

By : BIPLAB MODAK
2.3 (4)
close
close
C++ Application Development with Code::Blocks

C++ Application Development with Code::Blocks

2.3 (4)
By: BIPLAB MODAK

Overview of this book

Table of Contents (13 chapters)
close
close

First Windows app


Following the tradition of Hello World app, we'll create our first Windows app. To do so perform the following steps:

  1. Go to File | New | Project… menu option. Choose the Win32 GUI project option as in the following screenshot and click on the Go button:

  2. Click on the Next button on the first page of wizard as shown in the following screenshot. Choose Frame based option and click on the Next button. Dialog based apps can't contain menu bar or a toolbar. So we are choosing Frame based app.

  3. Enter App9 as project title and choose folder to create project. Now click on the Next button and then click on the Finish button to complete the wizard.

  4. Replace code inside the main.cpp file with following code:

    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE thisInstance,
                       HINSTANCE prevInstance,
                       LPSTR     commandLine,
                       int       cmdShow
                       )
    {
        MessageBox(NULL, "Hello World!", "Title", MB_OK | MB_ICONINFORMATION...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
C++ Application Development with Code::Blocks
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon