Which project template

Bryan Kelly 381 Reputation points
2024-07-06T04:33:59.53+00:00

Windows 11, Visual Studio 2022

I am having trouble finding a web page that provides some basic comparisons of the different template types.  The current need is a simple GUI for some number crunching.  There will be no graphics or pictures.  There will be many push buttons and fields for editing and displaying numbers.

I am unsure of the amount of detail to provide, the list of project templates on the left side of the project create dialog is:

Console App

MFC App

Windows Desktop Application

There is a list on the right side of the creation dialog.  Are they completely independent of the list on the left?  Why was each one created?

I tried MFC App, but, could not find a method to create a new GUI and when the default GUI editor was closed could not find a way to open it again.  Any help on this concept?

I did get to here:  https://learn.microsoft.com/en-us/visualstudio/ide/create-new-project?view=vs-2022#select-a-template-type

From there I was unable to detect (or maybe recognize) any descriptions of the various project types and why each might be selected.  There must have been a reason to create each of the project variations.  It would really be nice to find a description of each of the templates and why it was created.

Thank you for your time.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,769 questions
{count} votes

Accepted answer
  1. RLWA32 45,701 Reputation points
    2024-07-06T09:07:58.3666667+00:00

    The current need is a simple GUI for some number crunching.  There will be no graphics or pictures.  There will be many push buttons and fields for editing and displaying numbers.

    I agree with @David Lowndes comment if you want to create an application using MFC. The type of MFC application to be created is selected from the Application Type choices as shown below --MFCWizard Dropdown

    For your use case you would select "Dialog based" and continue from there, or for an MFC application using CFormView probably select "Single Document" and continue with the wizard until you reach the choices for "Generated Classes". As shown below, pick "View" from the Class dropdown and "CFormView" from the base class dropdown --

    MFC Formview


4 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Minxin Yu 12,091 Reputation points Microsoft Vendor
    2024-07-09T05:51:59.54+00:00

    Hi,

    1. The options <none>
      CMFCApplication2Dlg inherits MFC extend class CDialogEx

    class CMFCApplicationDlg : public CDialogEx
    class CDialogEx : public CDialog

    The CDialogEx class specifies the background color and background image of a dialog box.

    1. HTML: Is used to create dialog boxes that use HTML rather than dialog resources to implement their user interface. This option is for users who need to integrate HTML into MFC.
      class CMFCApplication3Dlg : public CDHtmlDialog
    2. The third option

    CMFCApplicationDlg : public CDialog

    From blog

    With _AFX_NO_MFC_CONTROLS_IN_DIALOGS #defined, they are built into a new small static MFC library

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.