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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Application icon problem

Application icon problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiohelpquestion
9 Posts 4 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.
  • H Offline
    H Offline
    Hans Georg Ulrich
    wrote on last edited by
    #1

    After changing to Visual Studio.Net and C++ V7 (and from WinNT to Win2K), I cannot change the application icon of my Visual C++ 7.0 application. On my developer machine, I can only see the standard MFC icon, although this was explicitly removed from the app's resources. When the application is installed on another machine, it correctly displays its custom icon. Any ideas ? Thank you !

    R B J 3 Replies Last reply
    0
    • H Hans Georg Ulrich

      After changing to Visual Studio.Net and C++ V7 (and from WinNT to Win2K), I cannot change the application icon of my Visual C++ 7.0 application. On my developer machine, I can only see the standard MFC icon, although this was explicitly removed from the app's resources. When the application is installed on another machine, it correctly displays its custom icon. Any ideas ? Thank you !

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      If you move your .exe out of the release directory, is the icon still wrong ? ~RaGE();

      H 1 Reply Last reply
      0
      • R Rage

        If you move your .exe out of the release directory, is the icon still wrong ? ~RaGE();

        H Offline
        H Offline
        Hans Georg Ulrich
        wrote on last edited by
        #3

        Yes, in the app. The desktop link (I made one) displays the correct icon !

        R 1 Reply Last reply
        0
        • H Hans Georg Ulrich

          After changing to Visual Studio.Net and C++ V7 (and from WinNT to Win2K), I cannot change the application icon of my Visual C++ 7.0 application. On my developer machine, I can only see the standard MFC icon, although this was explicitly removed from the app's resources. When the application is installed on another machine, it correctly displays its custom icon. Any ideas ? Thank you !

          B Offline
          B Offline
          Bartosz Bien
          wrote on last edited by
          #4

          1. Have you Rebuilt All? 2. In Doc/View architecture, distinguish between application and document icon (the link may display custom application icon, and the document icon may still be wizard-generated. Regards, BB

          H 1 Reply Last reply
          0
          • B Bartosz Bien

            1. Have you Rebuilt All? 2. In Doc/View architecture, distinguish between application and document icon (the link may display custom application icon, and the document icon may still be wizard-generated. Regards, BB

            H Offline
            H Offline
            Hans Georg Ulrich
            wrote on last edited by
            #5

            (1) Yes, I rebuilt (2) It is not the problem with app/doc icon, but the app has the MFC default icon.

            B 1 Reply Last reply
            0
            • H Hans Georg Ulrich

              After changing to Visual Studio.Net and C++ V7 (and from WinNT to Win2K), I cannot change the application icon of my Visual C++ 7.0 application. On my developer machine, I can only see the standard MFC icon, although this was explicitly removed from the app's resources. When the application is installed on another machine, it correctly displays its custom icon. Any ideas ? Thank you !

              J Offline
              J Offline
              Joel Lucsy
              wrote on last edited by
              #6

              When editing the icon, did you replace every device type? If you don't know what I'm talking about, when editing the icon there is a combobox labeled device. Icons can have different sizes and color depths. Make sure to change them all. Joel Lucsy

              H 1 Reply Last reply
              0
              • H Hans Georg Ulrich

                Yes, in the app. The desktop link (I made one) displays the correct icon !

                R Offline
                R Offline
                Rage
                wrote on last edited by
                #7

                The desktop link uses the 32*32 icon, whereas the app (in the explorer) uses the 16*16 one. Did you change both of them (Check that ComboBox in the ressource editor...) ~RaGE();

                1 Reply Last reply
                0
                • J Joel Lucsy

                  When editing the icon, did you replace every device type? If you don't know what I'm talking about, when editing the icon there is a combobox labeled device. Icons can have different sizes and color depths. Make sure to change them all. Joel Lucsy

                  H Offline
                  H Offline
                  Hans Georg Ulrich
                  wrote on last edited by
                  #8

                  Yes, there are different icons under the different device types. That's strange. Thank you for pointing to the solution.

                  1 Reply Last reply
                  0
                  • H Hans Georg Ulrich

                    (1) Yes, I rebuilt (2) It is not the problem with app/doc icon, but the app has the MFC default icon.

                    B Offline
                    B Offline
                    Bartosz Bien
                    wrote on last edited by
                    #9

                    I think I had such problem once, but I can't remember clearly what the cause exactly was. You may try deleting all compiler-generated stuff (Debug\ and Release\ dirs, .aps, .ncb ...) and unused resource IDs, then build again. Happy Easter! BB

                    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