Thread: LoadImage doesn't work when my program is accesing the hardrive

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    112

    Unhappy LoadImage doesn't work when my program is accesing the hardrive

    I have a program with a bitmap at the bottom. I also have a timmer and when the certain amount of time is passed the program changes the bitmap with LoadImage. The only problem is that I have a few other threads going and if one of the other threads is accesing the hardrive the bitmap does not load. Like if I have a save as box open or im downloading a file in another thread then the LoadImage function will fail. Anyone know a way to fix this becuase the majority of the time used in the program will be downloading files but I need to change the bitmaps.

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    If you know all the bitmaps before hand then why not just load them up when the program starts, then switch between them?
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    112
    yah, ok i was thinking of that.

    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Secure way of storing and accesing resource from a program
    By Travis Dane in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2002, 07:21 AM
  2. Why won't my program work?
    By Unregistered in forum C Programming
    Replies: 15
    Last Post: 01-11-2002, 12:57 PM
  3. Replies: 6
    Last Post: 01-07-2002, 02:46 AM
  4. how does this program work
    By ssjnamek in forum C++ Programming
    Replies: 2
    Last Post: 01-02-2002, 01:48 PM
  5. Heeeelpppppp Please! Program Wont Work!
    By MagiZedd in forum Windows Programming
    Replies: 3
    Last Post: 11-18-2001, 12:18 AM