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. Difference between WIN32 Application and WIN32 Console Application wizard

Difference between WIN32 Application and WIN32 Console Application wizard

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
8 Posts 6 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.
  • Z Offline
    Z Offline
    zahid_ash
    wrote on last edited by
    #1

    HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.

    _ S A D 4 Replies Last reply
    0
    • Z zahid_ash

      HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      The difference is that AppWizard generates a different stdafx.h for the two project types. For a Win32 app, stdafx.h includes windows.h , but for a Win32 console app stdafx.h does not include windows.h. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      Z 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        The difference is that AppWizard generates a different stdafx.h for the two project types. For a Win32 app, stdafx.h includes windows.h , but for a Win32 console app stdafx.h does not include windows.h. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        Z Offline
        Z Offline
        zahid_ash
        wrote on last edited by
        #3

        What the windows.h file makes diference in developement or programming Regards.

        A 1 Reply Last reply
        0
        • Z zahid_ash

          HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.

          S Offline
          S Offline
          Sarath C
          wrote on last edited by
          #4

          The system creates a new console when it starts a console process, a character-mode process whose entry point is the main function. For example, the system creates a new console when it starts the command processor. When the command processor starts a new console process, the user can specify whether the system creates a new console for the new process or whether it inherits the command processor's console. A process can create a console by using one of the following methods: -A GUI or console process can use the CreateProcess function with CREATE_NEW_CONSOLE to create a console process with a new console. (By default, a console process inherits its parent's console, and there is no guarantee that input is received by the process for which it was intended.) -A graphical user interface (GUI) or console process that is not currently attached to a console can use the AllocConsole function to create a new console. (GUI processes are not attached to a console when they are created. Console processes are not attached to a console if they are created using CreateProcess with DETACHED_PROCESS.) Currently I am working as software engineer at Network System Technologies Pvt. Ltd (NeST). Most of my project are in C++. Most interesting are is GUI programming.

          N 1 Reply Last reply
          0
          • Z zahid_ash

            What the windows.h file makes diference in developement or programming Regards.

            A Offline
            A Offline
            Alton Williams
            wrote on last edited by
            #5

            zahid_ash wrote:

            What the windows.h file makes diference in developement or programming

            Yes if you want to Windows based GUI apps. Otherwise you'll get errors

            1 Reply Last reply
            0
            • S Sarath C

              The system creates a new console when it starts a console process, a character-mode process whose entry point is the main function. For example, the system creates a new console when it starts the command processor. When the command processor starts a new console process, the user can specify whether the system creates a new console for the new process or whether it inherits the command processor's console. A process can create a console by using one of the following methods: -A GUI or console process can use the CreateProcess function with CREATE_NEW_CONSOLE to create a console process with a new console. (By default, a console process inherits its parent's console, and there is no guarantee that input is received by the process for which it was intended.) -A graphical user interface (GUI) or console process that is not currently attached to a console can use the AllocConsole function to create a new console. (GUI processes are not attached to a console when they are created. Console processes are not attached to a console if they are created using CreateProcess with DETACHED_PROCESS.) Currently I am working as software engineer at Network System Technologies Pvt. Ltd (NeST). Most of my project are in C++. Most interesting are is GUI programming.

              N Offline
              N Offline
              NiceNaidu fo
              wrote on last edited by
              #6

              There are two major differences between Win32 console and Win 32 application. 1.If it is win32 console application, mainCRTStartup() gets called first,which inturn calls main() method. If it is win32 application,then WinMainCRTStartup() gets called as Entry point ,which in turn calls WinMain 2.Under compiler settings, the /subsystem flag is set to /subsystem:windows for Win32 application, /subsystem:console for Win32 console application. Appu.. "If you judge people, you have no time to love them."

              1 Reply Last reply
              0
              • Z zahid_ash

                HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.

                A Offline
                A Offline
                Alton Williams
                wrote on last edited by
                #7

                zahid_ash wrote:

                please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard

                Simple. Win32 app creates a MSWindows type interface and Win32 Console Application creates a MSDOS (Similar to command prompt). http://www.sunlightd.com/Windows/FAQ.html#ConsoleIntro[^]

                1 Reply Last reply
                0
                • Z zahid_ash

                  HI, Could you please clarify that what is the diference between WIN32 Application and WIN32 Console Application wizard provided in VC++ (New -> Projects tab) wizards Thanks Regards.

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

                  zahid_ash wrote:

                  ...what is the diference between WIN32 Application and WIN32 Console Application wizard...

                  The former creates a Win32 application while the latter creates a console application. I'm assuming you know the difference betweeen a Win32 application and a console application, yes?


                  "The largest fire starts but with the smallest spark." - David Crow

                  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