Thread: is there anything wrong with this code that could be screwing anything read in

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Even though the reader doesn't seem to be the most optimized it looks like it should be reading. I'd crack open a hex editor and make sure everything is order in the file you are reading.

    [EDIT]
    The thought just occured to me that maybe data is being misaligned. I know that I've always had trouble directly reading a bitmap file header into a struct since a struct is aligned on the 32-bit boundary and the header is 14 bytes. Look into that too.
    [/EDIT]
    Last edited by master5001; 12-07-2002 at 02:14 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. whats wrong - long code
    By raja9911 in forum C Programming
    Replies: 0
    Last Post: 02-07-2006, 06:10 AM
  2. What's wrong with this code?
    By Finchie_88 in forum Networking/Device Communication
    Replies: 10
    Last Post: 05-27-2005, 09:46 AM
  3. What's wrong with my Win32 Wrapper code?
    By miica in forum Windows Programming
    Replies: 9
    Last Post: 02-22-2005, 08:55 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM