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. How to execute simple c++ file by microsoft visual studio 6

How to execute simple c++ file by microsoft visual studio 6

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiotutorialquestion
11 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 alpa shah

    Hello all.. I am very new to MFC. so please suggest me how can i create my simple .cpp file by VC++ without creating any workspace....If it is possible than plz tell me the way... Egarly waiting for reply...Please reply soon Thank you for reading this message....

    alpa shah

    P Offline
    P Offline
    prasad_som
    wrote on last edited by
    #2

    Haven't you checked Files tab, when used New option from File menu?

    Prasad Notifier using ATL

    A 2 Replies Last reply
    0
    • A alpa shah

      Hello all.. I am very new to MFC. so please suggest me how can i create my simple .cpp file by VC++ without creating any workspace....If it is possible than plz tell me the way... Egarly waiting for reply...Please reply soon Thank you for reading this message....

      alpa shah

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

      if you use VisualC++ (whatever vesion), you must create a workspace (or a solution, both appelations are same depending on the IDE). otherwise, you'll have to use the command line to call the compiler/linker yourself, but i don't advise you to, because if you are new, yo go directly to the headaches !! creating a new project is not a that difficult task. take few minutes to experiment the IDE.


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      1 Reply Last reply
      0
      • P prasad_som

        Haven't you checked Files tab, when used New option from File menu?

        Prasad Notifier using ATL

        A Offline
        A Offline
        alpa shah
        wrote on last edited by
        #4

        I'm really sorry for that...but i am totally new to MFC....thanks for your:) help...now i will check it...and send you reply about that...

        alpa shah

        1 Reply Last reply
        0
        • A alpa shah

          Hello all.. I am very new to MFC. so please suggest me how can i create my simple .cpp file by VC++ without creating any workspace....If it is possible than plz tell me the way... Egarly waiting for reply...Please reply soon Thank you for reading this message....

          alpa shah

          M Offline
          M Offline
          Mr Brainley
          wrote on last edited by
          #5

          Well you can create such a file simple by choosing New/File in the File menu, but i don't think thats what you want. It really depends on what kind of Application/Library etc. you want to create. The simplest i think is to create a new Project from the Win32 Console Application Template. Just use File/New/Project, then choose Win32 Console Application under Visual C++ Projects and enter a project name, then hit ok. Next window hit OK again, default options should suffice for now. In your project explorer (usually on the right side) you will find a .cpp file with the name of your project. This file contains an empty body of the main function. You can write your code here. Then hit Strg+F5 to execute. So much for a short total beginners tutorial. Hope that was helpfull and not too low ;)

          A T 3 Replies Last reply
          0
          • P prasad_som

            Haven't you checked Files tab, when used New option from File menu?

            Prasad Notifier using ATL

            A Offline
            A Offline
            alpa shah
            wrote on last edited by
            #6

            I have tried this direct file creation...but dear it didn't work..because it requires to create a workspace..so simple might not be work..that i was asking..:) Againg thanks for your suggestion...and thanks for reading my question....

            alpa shah

            P 1 Reply Last reply
            0
            • M Mr Brainley

              Well you can create such a file simple by choosing New/File in the File menu, but i don't think thats what you want. It really depends on what kind of Application/Library etc. you want to create. The simplest i think is to create a new Project from the Win32 Console Application Template. Just use File/New/Project, then choose Win32 Console Application under Visual C++ Projects and enter a project name, then hit ok. Next window hit OK again, default options should suffice for now. In your project explorer (usually on the right side) you will find a .cpp file with the name of your project. This file contains an empty body of the main function. You can write your code here. Then hit Strg+F5 to execute. So much for a short total beginners tutorial. Hope that was helpfull and not too low ;)

              A Offline
              A Offline
              alpa shah
              wrote on last edited by
              #7

              Thank you for this help..I am going to try this out...:)

              alpa shah

              1 Reply Last reply
              0
              • M Mr Brainley

                Well you can create such a file simple by choosing New/File in the File menu, but i don't think thats what you want. It really depends on what kind of Application/Library etc. you want to create. The simplest i think is to create a new Project from the Win32 Console Application Template. Just use File/New/Project, then choose Win32 Console Application under Visual C++ Projects and enter a project name, then hit ok. Next window hit OK again, default options should suffice for now. In your project explorer (usually on the right side) you will find a .cpp file with the name of your project. This file contains an empty body of the main function. You can write your code here. Then hit Strg+F5 to execute. So much for a short total beginners tutorial. Hope that was helpfull and not too low ;)

                A Offline
                A Offline
                alpa shah
                wrote on last edited by
                #8

                Thank you....It's working....:)

                alpa shah

                1 Reply Last reply
                0
                • A alpa shah

                  I have tried this direct file creation...but dear it didn't work..because it requires to create a workspace..so simple might not be work..that i was asking..:) Againg thanks for your suggestion...and thanks for reading my question....

                  alpa shah

                  P Offline
                  P Offline
                  prasad_som
                  wrote on last edited by
                  #9

                  alpa shah wrote:

                  I have tried this direct file creation...but dear it didn't work..because it requires to create a workspace

                  You can create .cpp file without workspace. But as mentioned earlier, thats not what you required. -- modified at 10:12 Thursday 14th September, 2006

                  Prasad Notifier using ATL[^] | Operator new,delete[^]

                  1 Reply Last reply
                  0
                  • M Mr Brainley

                    Well you can create such a file simple by choosing New/File in the File menu, but i don't think thats what you want. It really depends on what kind of Application/Library etc. you want to create. The simplest i think is to create a new Project from the Win32 Console Application Template. Just use File/New/Project, then choose Win32 Console Application under Visual C++ Projects and enter a project name, then hit ok. Next window hit OK again, default options should suffice for now. In your project explorer (usually on the right side) you will find a .cpp file with the name of your project. This file contains an empty body of the main function. You can write your code here. Then hit Strg+F5 to execute. So much for a short total beginners tutorial. Hope that was helpfull and not too low ;)

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

                    the OP wants an MFC project, not Win32 console :doh:


                    TOXCCT >>> GEII power

                    [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                    1 Reply Last reply
                    0
                    • A alpa shah

                      Hello all.. I am very new to MFC. so please suggest me how can i create my simple .cpp file by VC++ without creating any workspace....If it is possible than plz tell me the way... Egarly waiting for reply...Please reply soon Thank you for reading this message....

                      alpa shah

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #11

                      I help to you first what do you need? if see in File->New you can create many projects but it seems that you are new so you can create a MFC Application and next step in Application Type use Dialog based and click Finish button for compile in Debug menu select->Start Without Debugging. If you have any problem maybe i can help to you

                      _**


                      **_

                      WhiteSky


                      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