What does this error message mean?

This is a discussion on What does this error message mean? within the C++ Programming forums, part of the General Programming Boards category; 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 ...

  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
    ZuK
    ZuK is offline
    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, 04:33 AM
  2. Replies: 13
    Last Post: 10-08-2010, 06:35 PM
  3. Error Message
    By NANO in forum C++ Programming
    Replies: 6
    Last Post: 05-11-2003, 04:06 PM
  4. Odd Error message
    By VanJay011379 in forum C Programming
    Replies: 3
    Last Post: 01-24-2003, 11:50 AM
  5. error message, what does it mean?
    By Shy_girl_311 in forum C++ Programming
    Replies: 5
    Last Post: 11-09-2001, 09:54 PM

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