Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. beggining to create first program

beggining to create first program

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++visual-studiowinforms
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lordgreg
    wrote on last edited by
    #1

    hi to all, i finaly managed to get some free time and would like to create my first program using Visual Studio .NET. i would like a program with a nice menu, toolbar, dockable treeview on the left and other free space filled with richtextbox. it would be something like article writer, that's all. now i would like to find out few things, even though we're programming in vc++ .net on our faculty. anyhow, here they are: 1. when creating new .NET project, what type of project to select if i would like to write a program as mentioned above? should it be: - Empty Project (.NET) or - Windows Forms Application (.NET) - MFC Application (MFC) i noticed that that 2nd one has support for more Windows Forms components, also it has imagelist with selection about color depth etc. if i'm creating a program, it should also look good. i noticed also, that in this example the best option is to use Windows Forms Applications. What is your opinion? What are the actual diferences between those three? 2. but, if i'm talking about Windows Forms Application, i have a question about it,.. when viewing Class View for that type of project, i didn't noticed any main class. so, where to write my own code that would be executed when program would be runned? which is the main class when creating WFA? 3. the last question is somehow related with first two ones. i would really like to know, what type of project fits the best for a)dialog based applications (example- mIRC, UltraEdit, FTP programs, ... any kind of programs actually; if they're written in VC++ .NET)? i would really apretiate your answers! thanks in advance and best regards to all ;)

    C 1 Reply Last reply
    0
    • L lordgreg

      hi to all, i finaly managed to get some free time and would like to create my first program using Visual Studio .NET. i would like a program with a nice menu, toolbar, dockable treeview on the left and other free space filled with richtextbox. it would be something like article writer, that's all. now i would like to find out few things, even though we're programming in vc++ .net on our faculty. anyhow, here they are: 1. when creating new .NET project, what type of project to select if i would like to write a program as mentioned above? should it be: - Empty Project (.NET) or - Windows Forms Application (.NET) - MFC Application (MFC) i noticed that that 2nd one has support for more Windows Forms components, also it has imagelist with selection about color depth etc. if i'm creating a program, it should also look good. i noticed also, that in this example the best option is to use Windows Forms Applications. What is your opinion? What are the actual diferences between those three? 2. but, if i'm talking about Windows Forms Application, i have a question about it,.. when viewing Class View for that type of project, i didn't noticed any main class. so, where to write my own code that would be executed when program would be runned? which is the main class when creating WFA? 3. the last question is somehow related with first two ones. i would really like to know, what type of project fits the best for a)dialog based applications (example- mIRC, UltraEdit, FTP programs, ... any kind of programs actually; if they're written in VC++ .NET)? i would really apretiate your answers! thanks in advance and best regards to all ;)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      lordgreg wrote: - Empty Project (.NET) or - Windows Forms Application (.NET) - MFC Application (MFC) Depends, do you want to use MFC or .NET ? Both of these options will work, albeit they are vastly different, because they use different libraries to achieve the same goal. lordgreg wrote: What is your opinion? What are the actual diferences between those three? 1 - creates an empty app that links to .NET 2 - creates an app that uses Windows Forms and therefore requires the .NET framework and knowledge of managed C++ 3 - creates an app that either statically links to the MFC dll, or requires it to be installed. MFC is how C++ Windows apps were written before VS.NET, and still are, but it's the older option. lordgreg wrote: when viewing Class View for that type of project, i didn't noticed any main class. so, where to write my own code that would be executed when program would be runned? I'm starting to wonder if you are really creating your first program at ALL, in which case, you're being way to ambitious. You shoud learn C++ before learning ANY windows library. A forms app will have a form class which has events you can put code into. So will an MFC app, for that matter. lordgreg wrote: i would really like to know, what type of project fits the best for a)dialog based applications (example- mIRC, UltraEdit, FTP programs, ... any kind of programs actually; if they're written in VC++ .NET)? The answer is option 2 or 3, depends on what library you want to use. Christian Graus - Microsoft MVP - C++

      L 1 Reply Last reply
      0
      • C Christian Graus

        lordgreg wrote: - Empty Project (.NET) or - Windows Forms Application (.NET) - MFC Application (MFC) Depends, do you want to use MFC or .NET ? Both of these options will work, albeit they are vastly different, because they use different libraries to achieve the same goal. lordgreg wrote: What is your opinion? What are the actual diferences between those three? 1 - creates an empty app that links to .NET 2 - creates an app that uses Windows Forms and therefore requires the .NET framework and knowledge of managed C++ 3 - creates an app that either statically links to the MFC dll, or requires it to be installed. MFC is how C++ Windows apps were written before VS.NET, and still are, but it's the older option. lordgreg wrote: when viewing Class View for that type of project, i didn't noticed any main class. so, where to write my own code that would be executed when program would be runned? I'm starting to wonder if you are really creating your first program at ALL, in which case, you're being way to ambitious. You shoud learn C++ before learning ANY windows library. A forms app will have a form class which has events you can put code into. So will an MFC app, for that matter. lordgreg wrote: i would really like to know, what type of project fits the best for a)dialog based applications (example- mIRC, UltraEdit, FTP programs, ... any kind of programs actually; if they're written in VC++ .NET)? The answer is option 2 or 3, depends on what library you want to use. Christian Graus - Microsoft MVP - C++

        L Offline
        L Offline
        lordgreg
        wrote on last edited by
        #3

        thank you for your answers Christian- they helped alot!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups