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. Creating GUI on existing in VC++ 2010 project

Creating GUI on existing in VC++ 2010 project

Scheduled Pinned Locked Moved C / C++ / MFC
c++beta-testinghelptutorialcode-review
6 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.
  • M Offline
    M Offline
    Member 9350237
    wrote on last edited by
    #1

    Hi guys!, I'm developing an application using a library in VC++ 2010. I don't have previous experience in GUI programming. So I'm wondering how to begin with on my existing project. It's an tracking experiment where I need to set various parameters initially for the specific task in GUI. Once I set all parameters, GUI have to create a file containing all those parameters and have to pass to the project. It would be of great help if you could give feedback, Thanks!

    L 1 Reply Last reply
    0
    • M Member 9350237

      Hi guys!, I'm developing an application using a library in VC++ 2010. I don't have previous experience in GUI programming. So I'm wondering how to begin with on my existing project. It's an tracking experiment where I need to set various parameters initially for the specific task in GUI. Once I set all parameters, GUI have to create a file containing all those parameters and have to pass to the project. It would be of great help if you could give feedback, Thanks!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I am not sure exactly what feedback you are expecting, as it really depends on what sort of GUI you wish to present to the user. Setting parameters could be anything from simple text input, drop down list or combo, slider, up/down control etc., all of which can be accomplished by using the various Windows Controls[^]. I would suggest looking at some of the sample articles here on CodeProject[^] to get some ideas about how other people have approached similar issues. You could also add some more detail to your question which would help us make more suggestions.

      M 1 Reply Last reply
      0
      • L Lost User

        I am not sure exactly what feedback you are expecting, as it really depends on what sort of GUI you wish to present to the user. Setting parameters could be anything from simple text input, drop down list or combo, slider, up/down control etc., all of which can be accomplished by using the various Windows Controls[^]. I would suggest looking at some of the sample articles here on CodeProject[^] to get some ideas about how other people have approached similar issues. You could also add some more detail to your question which would help us make more suggestions.

        M Offline
        M Offline
        Member 9350237
        wrote on last edited by
        #3

        Thank you! Sorry about my poor explanation!, The working on a project which is windows console application. But as per my understanding, GUI can be only done in 'Windows Forms Applications'. Will it be possible to change console applications to windows forms application, where I can find all tools for creating GUI??

        L 1 Reply Last reply
        0
        • M Member 9350237

          Thank you! Sorry about my poor explanation!, The working on a project which is windows console application. But as per my understanding, GUI can be only done in 'Windows Forms Applications'. Will it be possible to change console applications to windows forms application, where I can find all tools for creating GUI??

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Windows Forms applications use C++/CLI or C#. But you can create a Win32/MFC Windows application using the standard Windows controls. Since you already (I assume) have most of the code in your console app, converting it to Windows should not be too difficult (depending on your skill level), although the initial learning does take some time. You can create a basic Windows application from the template supplied with Visual Studio, so it is worth starting with that to see how it is put together.

          M 1 Reply Last reply
          0
          • L Lost User

            Windows Forms applications use C++/CLI or C#. But you can create a Win32/MFC Windows application using the standard Windows controls. Since you already (I assume) have most of the code in your console app, converting it to Windows should not be too difficult (depending on your skill level), although the initial learning does take some time. You can create a basic Windows application from the template supplied with Visual Studio, so it is worth starting with that to see how it is put together.

            M Offline
            M Offline
            Member 9350237
            wrote on last edited by
            #5

            Thank you!. I have been trying to convert my console application to windows form application. While running I'm getting an error, following is the part of my main function..

            int main(array ^args)
            {

            Application::EnableVisualStyles();
            Application::SetCompatibleTextRenderingDefault(false);

            char fname\[30\];
            char fpath\[100\]; // file name for logging
            char fpath1\[100\]; // file name for logging
            
            //disable force field for first half of trial 
            for(int i=0;i
            

            This was the error. I tried changing 'main' as 'WinMain' but it's not preceeding

            error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

            any suggestion greatly appreciated.

            L 1 Reply Last reply
            0
            • M Member 9350237

              Thank you!. I have been trying to convert my console application to windows form application. While running I'm getting an error, following is the part of my main function..

              int main(array ^args)
              {

              Application::EnableVisualStyles();
              Application::SetCompatibleTextRenderingDefault(false);

              char fname\[30\];
              char fpath\[100\]; // file name for logging
              char fpath1\[100\]; // file name for logging
              
              //disable force field for first half of trial 
              for(int i=0;i
              

              This was the error. I tried changing 'main' as 'WinMain' but it's not preceeding

              error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

              any suggestion greatly appreciated.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Your code above is using managed C++, not ordinary Win32. I suggest you start again and either create a proper Windows Forms application, or use standard unmanaged C++ or MFC.

              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