Displaying a GIF-picture file

This is a discussion on Displaying a GIF-picture file within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm looking for a way (source code, no libs) to open a GIF-picture file. I know this can be ...

  1. #1
    Registered User Ward's Avatar
    Join Date
    Sep 2001
    Location
    Belgium
    Posts
    39

    Question Displaying a GIF-picture file

    Hi,

    I'm looking for a way (source code, no libs) to open a GIF-picture file.
    I know this can be done using OleLoadPicture, but since I'm working with Windows CE, this function is not supported.
    Does anyone of you has some sort of sample code for opening, reading and displaying a GIF-picture file in a simple window?

    Help would be greatly appreciated.
    Greetings.

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hey,

    As far as im aware the win32 api dosnt naturally support gif files. I think this a quite hard to do in the api, however i think its easier in mfc, i can get some mfc code for you if thats what your working in.

    Otherwise, head to http://www.wotsit.org , it will have the .gif format on there somewhere, but personally i never understood how to use this information to make a working proggy....

    Thanks
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  3. #3
    Registered User Ward's Avatar
    Join Date
    Sep 2001
    Location
    Belgium
    Posts
    39

    Smile Thanks

    Well, I already had the GIF format explanation from Compuserve version 89a (which I'm reading at the moment). You said you had samplecode using MFC? I'm not working with MFC, but maybe I could learn something about it.
    I'm still searching, but if I find something interesting, I'll let you know!

    Thanks for replying!


    Ward
    Greetings.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File being filled with NULLs
    By Tigers! in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2009, 05:28 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. Problems passing a file pointer to functions
    By smitchell in forum C Programming
    Replies: 4
    Last Post: 09-30-2008, 02:29 PM
  4. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  5. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM

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