Tutorial for first dialog app, C++

Bryan Kelly 486 Reputation points
2021-04-23T20:32:11.233+00:00

Please help me find a tutorial that walks me through the process of creating a desktop app and ends up with a dialog containing, for example, some labels, text boxes, checkboxes, and buttons.
The project will eventually use OpenGL to draw some charts. I don’t know if it should use MFC, ATL, or something else.
This is for Windows 10 and visual Studio 2017 Professional, C++
Yes, I have googled and tried several MSDN walkthroughs but not discovered what is needed.
Thank you for your time

Note, apologies for the tags. they are required, but will accept nothing I typed in. Tried "di" for dialog and found nothing appropriate. Selected something from the options and went with that.

Example problem: A video tutorial begins with: New -> Project -> MFC -> MFC Application
This install of VS 2017 Professional has: New -> Project -> MFC/ATL -> ATL Project
MCS/ATL is the only MFC option at the Project level, and ATL Project is the only sub-option provided. Have I configured something wrong with VS 2017? How important is this?

Developer technologies C++
{count} votes

2 answers

Sort by: Most helpful
  1. Sam of Simple Samples 5,546 Reputation points
    2021-04-23T21:14:07.743+00:00

    I did a quick search and found OpenGL - Win32 apps. Did you see that? The following are other samples and tutorials.

    And probably Visual Studio installs everything we need for OpenGL, we only need to add opengl32.lib as a linker input library for the project. Do you know how to do that in VS? So if you create an empty C++ desktop application and put something like minimal.c into it and add opengl32.lib as a linker input library then it can work just that easily. Except to close the samples from that site (they are very old) I need to click the "x" icon multiple times.

    1 person found this answer helpful.

  2. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2021-04-26T02:35:57.69+00:00

    Hi

    According to your description, If you want to try to create a Win32 project, I suggest you could refer to the Docs:
    How to: Create a Dialog Box (C++)
    Dialog Box Controls (C++)
    How To: Add, Edit, or Delete Controls (C++)

    If you want to create an MFC project, I suggest you could refer to the Docs:
    Working with Dialog Boxes in MFC
    Making and Using Controls

    This install of VS 2017 Professional has: New -> Project -> MFC/ATL -> ATL Project

    I suggest you should check whether you have installed the MFC SDK. Open the VS Installer window, you could click on "Individual Components", then scroll quite a way down to get to the "SDKs, libraries and frameworks" section. In there, you'll find a list of components for ATL and MFC support. You could choose the version you need to install.

    Best Regards,

    Jeanine Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.