Two Questions.

This is a discussion on Two Questions. within the C++ Programming forums, part of the General Programming Boards category; Ok, two questions here... 1. How do I put an Icon on a '.exe' file? 2. How do I make ...

  1. #1
    Registered User Ranedhel's Avatar
    Join Date
    Jun 2003
    Posts
    34

    Question Two Questions.

    Ok, two questions here...

    1. How do I put an Icon on a '.exe' file?

    2. How do I make the console window run in fullscreen?
    (Is there a 'system' command?)
    -Elven Forge Software-
    (Lead Designer)

    http://www.geocities.com/elvenforge

    **infected by frenchfry164**
    I am a signature virus. Please add me to your signature so that I may multiply

  2. #2
    ___
    Join Date
    Jun 2003
    Posts
    806
    You make the .exe and then you right click. Then properties. Then Advanced. Then set the icon.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  3. #3
    Registered User Ranedhel's Avatar
    Join Date
    Jun 2003
    Posts
    34

    Re:

    That is only in windows 2000 & XP.
    -Elven Forge Software-
    (Lead Designer)

    http://www.geocities.com/elvenforge

    **infected by frenchfry164**
    I am a signature virus. Please add me to your signature so that I may multiply

  4. #4
    ___
    Join Date
    Jun 2003
    Posts
    806
    Well I helped a little!
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  5. #5
    Registered User Ranedhel's Avatar
    Join Date
    Jun 2003
    Posts
    34

    Re:

    Only people who didn't know that.
    Last edited by Ranedhel; 07-24-2003 at 05:15 PM.
    -Elven Forge Software-
    (Lead Designer)

    http://www.geocities.com/elvenforge

    **infected by frenchfry164**
    I am a signature virus. Please add me to your signature so that I may multiply

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    There's code on these forums that will force a console window to full screen. I suggest you do a search and see what you find
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    Registered User Ranedhel's Avatar
    Join Date
    Jun 2003
    Posts
    34

    Re:

    Thanks man, I found one that helped...
    -Elven Forge Software-
    (Lead Designer)

    http://www.geocities.com/elvenforge

    **infected by frenchfry164**
    I am a signature virus. Please add me to your signature so that I may multiply

  8. #8
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    An icon is a RESOURCE

    A resource is part of the exe file, but it is not part of the executable machine code. (Maybe it's part of the file header.)

    How you add it depends on your compiler. I don't remember exactly... but with MSVC++ it's something like click ADD -> RESOURCE -> MyIcon.ico.
    Last edited by DougDbug; 07-25-2003 at 05:05 PM.

  9. #9
    Registered User Ranedhel's Avatar
    Join Date
    Jun 2003
    Posts
    34

    Re:

    I am using Dev C++...
    -Elven Forge Software-
    (Lead Designer)

    http://www.geocities.com/elvenforge

    **infected by frenchfry164**
    I am a signature virus. Please add me to your signature so that I may multiply

  10. #10
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Look up how to make resource files (it can be done with a text editor). I believe the function you need is LoadIcon from the WinAPI.
    Away.

  11. #11
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    Menu "Project" -> "Project Options" : Tab "Common" -> Group box "Icon": Select button "Library", "Load from file" or "Remove".

    This will add one icon as a resource and creates a binnary header in the compiled exe that tells Windows to display this icon for the file.

    Not sure how to add your own resources to the project (like other bitmaps etc.) in DevC++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 09:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 06:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 08:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 08:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21