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. "Importing .Gif files"

"Importing .Gif files"

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionlearning
4 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.
  • H Offline
    H Offline
    harsh_2961
    wrote on last edited by
    #1

    Hi, In Add resource of resource view i created a custom resource "GIF" and tried to import a gif file saved in "res" folder of my project. it is then asking me to enter resource type of the file i am importing and when i enter it as gif .. its saying file is not of required format and thus importing is failed. i repeated this with other .gif files which are succesfully imported by other people in their projects and failed again for the same above reason. any idea on how to import custom resources or specifically .gif files... ?

    Harsha

    M 1 Reply Last reply
    0
    • H harsh_2961

      Hi, In Add resource of resource view i created a custom resource "GIF" and tried to import a gif file saved in "res" folder of my project. it is then asking me to enter resource type of the file i am importing and when i enter it as gif .. its saying file is not of required format and thus importing is failed. i repeated this with other .gif files which are succesfully imported by other people in their projects and failed again for the same above reason. any idea on how to import custom resources or specifically .gif files... ?

      Harsha

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      What version of VS are you using? I just tried it on VS2003 and it worked fine. You shouldn't need to put the gif file in the res folder - VS will do that for you when you import the file. Mark

      "If you can dodge a wrench, you can dodge a ball."

      H 1 Reply Last reply
      0
      • M Mark Salsbery

        What version of VS are you using? I just tried it on VS2003 and it worked fine. You shouldn't need to put the gif file in the res folder - VS will do that for you when you import the file. Mark

        "If you can dodge a wrench, you can dodge a ball."

        H Offline
        H Offline
        harsh_2961
        wrote on last edited by
        #3

        i am using VS 2005 ... and the gif file is in res folder only.. afte i growse to the .gif file while importing .. its asking for RESOURCETYPE and when i give it as GIF( i tried many other permutations and combinations of same name) it is saying "GIF is not a valid GIF Image". please check it out help....

        Harsha

        M 1 Reply Last reply
        0
        • H harsh_2961

          i am using VS 2005 ... and the gif file is in res folder only.. afte i growse to the .gif file while importing .. its asking for RESOURCETYPE and when i give it as GIF( i tried many other permutations and combinations of same name) it is saying "GIF is not a valid GIF Image". please check it out help....

          Harsha

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          I have VS2003 so I can't try it. In 2003, specifying a resource type "gif" creates a new resource type and adds the binary image of the gif file to the resources. On 2005 do you have to add a new resource category first before you import the gif file? Mark

          "If you can dodge a wrench, you can dodge a ball."

          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