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. Advise - How to make C++ Windows Form App without .NET framework

Advise - How to make C++ Windows Form App without .NET framework

Scheduled Pinned Locked Moved C / C++ / MFC
csharpquestionc++dotnetvisual-studio
10 Posts 5 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.
  • A Offline
    A Offline
    alanteigne
    wrote on last edited by
    #1

    I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...

    T A J M 4 Replies Last reply
    0
    • A alanteigne

      I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...

      T Offline
      T Offline
      TheGreatAndPowerfulOz
      wrote on last edited by
      #2

      MFC?

      Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

      A 1 Reply Last reply
      0
      • T TheGreatAndPowerfulOz

        MFC?

        Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

        A Offline
        A Offline
        alanteigne
        wrote on last edited by
        #3

        (now my ignorance will become evident) I've just created an MFC solution in VS05, but wasn't sure what to choose for the project settings so I used the defaults. I'm not seeing how to interact with the main form. Can I use the graphical form designer with this type of project?

        T 1 Reply Last reply
        0
        • A alanteigne

          (now my ignorance will become evident) I've just created an MFC solution in VS05, but wasn't sure what to choose for the project settings so I used the defaults. I'm not seeing how to interact with the main form. Can I use the graphical form designer with this type of project?

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #4

          yes

          Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

          A 1 Reply Last reply
          0
          • T TheGreatAndPowerfulOz

            yes

            Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay

            A Offline
            A Offline
            alanteigne
            wrote on last edited by
            #5

            Could you elaborate on how to do so? When I try to add a form, it wants to add support for CLR, which means .NET framework, if I'm not mistaken..

            A 1 Reply Last reply
            0
            • A alanteigne

              Could you elaborate on how to do so? When I try to add a form, it wants to add support for CLR, which means .NET framework, if I'm not mistaken..

              A Offline
              A Offline
              alanteigne
              wrote on last edited by
              #6

              Ah! It's called a dialog here. I've added a Dialog and can design willy nilly. Sweet.

              1 Reply Last reply
              0
              • A alanteigne

                I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...

                A Offline
                A Offline
                Ali Rafiee
                wrote on last edited by
                #7

                You have two options with MFC. You can create a dialog based application or a SDI/MDI application using CFormView. A dialog based application generally does not have a menu or toolbar. What you get is a dialog box (WinForm in the .Net world), that you can drag and drop your controls into and then write the code behind it to do what you want. If you want menus and toolbar, then I would go with either an MDI or SDI application. This is more like windows notepad and Visual Studio. Visual Studio is an MDI (multi-document application) and SDI is like notepade (single document interface). When creating a SDI/MDI applicaiton, the last page of the application wizard lets you choose what type of view you want. If you want to be able to display some control, like buttons, lables, edit control...., you would want to change the view class from CView to CFormView. Let me also add that jumping into something like this without doing some homework could turnout to be somewhat overwhelming. Good luck,

                AliR. Visual C++ MVP

                A 1 Reply Last reply
                0
                • A Ali Rafiee

                  You have two options with MFC. You can create a dialog based application or a SDI/MDI application using CFormView. A dialog based application generally does not have a menu or toolbar. What you get is a dialog box (WinForm in the .Net world), that you can drag and drop your controls into and then write the code behind it to do what you want. If you want menus and toolbar, then I would go with either an MDI or SDI application. This is more like windows notepad and Visual Studio. Visual Studio is an MDI (multi-document application) and SDI is like notepade (single document interface). When creating a SDI/MDI applicaiton, the last page of the application wizard lets you choose what type of view you want. If you want to be able to display some control, like buttons, lables, edit control...., you would want to change the view class from CView to CFormView. Let me also add that jumping into something like this without doing some homework could turnout to be somewhat overwhelming. Good luck,

                  AliR. Visual C++ MVP

                  A Offline
                  A Offline
                  alanteigne
                  wrote on last edited by
                  #8

                  Overwhelming indeed. I've decided to forget the GUI for now until I get my C++ logic and syntax down. So far I've successfully made a custom class that performs a WMI query to some info I need. I'm now working on figuring out some datatyping issues I'm running into that I never ran into in C#. Thanks for the advice, I'll certainly put it to use when I get to adding a GUI.

                  1 Reply Last reply
                  0
                  • A alanteigne

                    I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...

                    J Offline
                    J Offline
                    jhwurmbach
                    wrote on last edited by
                    #9

                    alanteigne wrote:

                    How should I go about creating a Form based GUI app for my circumstances?

                    You can't. Its that simple. Forms are .NET. Period. To create an unmanaged GUI, you need a different Framework than Windows Forms. MFC was mentioned, WTL is also an option. Also, you could try using other frameworks: wxWidgets[^] Qt[^] come to mind.

                    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
                    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

                    1 Reply Last reply
                    0
                    • A alanteigne

                      I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...

                      M Offline
                      M Offline
                      Moak
                      wrote on last edited by
                      #10

                      As others said MFC, QT, etc are common... if your application is really trivial (maybe one dialog and a few interactive controls) you can also do plain Win32. The advantage is that you don't have to learn a whole framework like MFC and get really slim code... search for "win32 tutorial". Hope it helps.

                      My Webchat

                      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