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. Hide console window

Hide console window

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelpquestion
3 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.
  • A Offline
    A Offline
    Abebe
    wrote on last edited by
    #1

    Hi, I've created a console application and want to hide the (console) window when the app. is started. I know you can achieve this by calling 'ShellExecute', but that's not what i want. I remember i did this at one point by using '#pragma comment (linker , *bladiebla*)'. I don't exactly remember the rest, but i think it was something like that. Can anbody help me out here? Thanks Er zit een korstje op mijn aars.

    A 1 Reply Last reply
    0
    • A Abebe

      Hi, I've created a console application and want to hide the (console) window when the app. is started. I know you can achieve this by calling 'ShellExecute', but that's not what i want. I remember i did this at one point by using '#pragma comment (linker , *bladiebla*)'. I don't exactly remember the rest, but i think it was something like that. Can anbody help me out here? Thanks Er zit een korstje op mijn aars.

      A Offline
      A Offline
      Abebe
      wrote on last edited by
      #2

      forgettaboutit.....already found it... '#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")'...this works just fine. Er zit een korstje op mijn aars.

      P 1 Reply Last reply
      0
      • A Abebe

        forgettaboutit.....already found it... '#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")'...this works just fine. Er zit een korstje op mijn aars.

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

        You can do the same thing in project settings->link/catagory output Entry-point symbol.


        1.Why do people not wearing a wrist watch look at their wrist for time when people ask for time. 2.Why do people ask for time from people who are not wearing a wrist watch. Prakash, India.

        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