Menu

win32 and console

Anonymous
2003-02-13
2012-09-26
  • Anonymous

    Anonymous - 2003-02-13

    I'm creating my first win32 programs, and when I test my exe files I always get a console in addition to the main window. How can I get rid of it?

    I'm new to win32 programming so this might be a very simple thing, but I couldn't figure it out. Thanks in advance!

     
    • Nobody/Anonymous

      somewhere in the project settings there's  a 'do not create console' setting. don't recall exactly where, shouldn't be hard to find, just look through them..

       
    • Anonymous

      Anonymous - 2003-02-13

      Project|Project Options...->Compiler tab->Linker options.

       
    • Nobody/Anonymous

      -mwindows

      This tells GCC that you are specifying the machine type. In this case, win32 PE executable.

      Kip

       
    • Anonymous

      Anonymous - 2003-02-14

      Thanks guys!
      I hope my next question is more interesting / challenging :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.