Thread: What does this error message mean?

  1. #1
    Registered User hungrymouth's Avatar
    Join Date
    Oct 2012
    Posts
    19

    What does this error message mean?

    Hey guys I'm getting this error message in my code. It says: 1>c:\users\caconnects\documents\visual studio 2012\projects\fproj\fproj\header.h(278): warning C4244: '=' : conversion from 'std::streamoff' to 'int', possible loss of data

    And this is the part that says where the error is coming from:
    Code:
     LengthOfFile = ReadWrite.tellg();
    I'm not sure what I have to do to fix this any idea? My code is running but the thing if I try to edit something, then save it and compile it, it won't compile what I edited.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    It's warning you that the return value from tellg() might not fit into an int.
    Kurt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with Error message
    By Holmeslice in forum C Programming
    Replies: 4
    Last Post: 10-07-2012, 03:33 AM
  2. Replies: 13
    Last Post: 10-08-2010, 05:35 PM
  3. Error Message
    By NANO in forum C++ Programming
    Replies: 6
    Last Post: 05-11-2003, 03:06 PM
  4. error message, what does it mean?
    By Shy_girl_311 in forum C++ Programming
    Replies: 5
    Last Post: 11-09-2001, 09:54 PM