CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Writing Structure to CSV file - won't work... HELP!

    Quote Originally Posted by Protocol View Post
    It appears to include to exclude the decimal portion. Since I don't require the decimal portion, the integer representation is acceptable.
    Actually the behaviour is undefined as to what will happen.

    I didn't point it out before, but that's the flaw in your program. If you use printf()-like functions, the parameter you pass must match the format specifier. If you pass an int and the format specifier asks for double or vice-versa, then all bets are off as to what will happen.

    That's why C++ has streams and overloaded operator <<, to ensure type-safety.
    At this point, I'll accept VC++ as VC++, including any code that it can generate.
    Again, there is a forum for managed C++ questions. The stuff with the "^" syntax is off-topic in this forum. It isn't C++, plain and simple, it is a different technology altogether.

    Regards,

    Paul McKenzie

  2. #17
    Join Date
    Feb 2005
    Posts
    35

    Re: Writing Structure to CSV file - won't work... HELP!

    Any chance you could edit this to remove my name from 3)? Thanks.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured