Thread: Assigning pictures to hex values

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    2

    Assigning pictures to hex values

    I'm writing a program that opens up a file in binary format then jumps to a certain byte and extracts a certain amount of bytes from where it went to. That part is the easy pat to write. Does anybody know how i can write a program that gives each hex value a different bmp picture, i've got 265 different pictures for the range of 00 to FF.

    Many thx

    firemaker

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    what do you mean by "gives each hex value"? You mean you want to display in a window a different bitmap for each value? If so, just create an array of 256 bitmaps (CBitmap if you are using MFC, if not, whatever you use in your environment), and then display myBitmap[byteValue];

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    2
    I got that part working, thanks. And BTW I meant 256 pics.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 11-11-2006, 02:10 PM
  2. Replies: 3
    Last Post: 01-23-2006, 07:25 PM
  3. Representing float values in hex
    By cboard_member in forum Tech Board
    Replies: 2
    Last Post: 01-06-2006, 02:06 PM
  4. assigning values to multidimensional array
    By jjj93421 in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2004, 04:31 PM
  5. Hex Values - C
    By Denise11 in forum C Programming
    Replies: 4
    Last Post: 01-27-2002, 04:49 AM