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. MFC using Visual C++

MFC using Visual C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicstutorialquestionlounge
9 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.
  • I Offline
    I Offline
    Iceberg76
    wrote on last edited by
    #1

    Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You

    D P I 3 Replies Last reply
    0
    • I Iceberg76

      Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Iceberg76 wrote: For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button Look for CreateProcess() and ShellExecute(). These two functions are not related to MFC, however.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      I 1 Reply Last reply
      0
      • I Iceberg76

        Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You

        P Offline
        P Offline
        Prakash Nadar
        wrote on last edited by
        #3

        Clickety[^]


        God is Real, unless declared Integer.

        I 1 Reply Last reply
        0
        • D David Crow

          Iceberg76 wrote: For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button Look for CreateProcess() and ShellExecute(). These two functions are not related to MFC, however.


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          I Offline
          I Offline
          Iceberg76
          wrote on last edited by
          #4

          Thanks, Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

          D 1 Reply Last reply
          0
          • P Prakash Nadar

            Clickety[^]


            God is Real, unless declared Integer.

            I Offline
            I Offline
            Iceberg76
            wrote on last edited by
            #5

            Thanks, Nice online samples! Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

            T 1 Reply Last reply
            0
            • I Iceberg76

              Thanks, Nice online samples! Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              File|New -> project tab -> MFC Application icon then, follow the instructor...


              TOXCCT >>> GEII power

              1 Reply Last reply
              0
              • I Iceberg76

                Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You

                I Offline
                I Offline
                Iceberg76
                wrote on last edited by
                #7

                Oh, sorry! I found the properties tab to enable a normal empty win32 into an MFC application.

                C 1 Reply Last reply
                0
                • I Iceberg76

                  Oh, sorry! I found the properties tab to enable a normal empty win32 into an MFC application.

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

                  The problem is that, quite simply, you can create a Win32 app that links to MFC, which you may decide to do in order to get to CString or something, but an MFC GUI application really needs all those classes that the wizard is creating for you. The simplest thing is a dialog based app, which does not use Doc/View. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                  1 Reply Last reply
                  0
                  • I Iceberg76

                    Thanks, Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    I'm not sure of the project types that v7 offers, but with v6, you can create a console application that supports MFC. The resulting project contains two .cpp and two .h files. That's about as small as it gets. With a dialog-based project, you'll get three of each, plus a res folder.


                    "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

                    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