Results 1 to 5 of 5

Thread: Help With Resource.

  1. #1

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411
    How do u input a .gif file into a resource file so that i can distribute just my .exe without having to include the gif animation that my program is displaying. ? i know how to load a gif animation and all. but i just want to know whats the correct call to put it into a resource file. i know that .bmp is like this :

    NAMEOFBMP BITMAP "file.bmp"

    but how do i do a .gif ????? i know how to do it in vb6 so i know its possible in vb6, so i'm sure its possible in c++. thanx ahead of time

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    GIF images aren't natively supported in resource scripts, so you'll need to insert it as binary data.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    Oooh ok :)

    hehe,
    Thanx

  4. #4

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    Umm ??

    yo i thought i knew what you were talking about, but i guess not. could u give me an example ? Please. Or could u direct me somewhere that gives an example on it or a little information on the subject.

    thanx

  5. #5

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    hmm i think i might know now

    i think it would be like this:

    Gif_File GIF
    {
    Binary Data Here
    }

    how would i go about getting the binary data though ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width