CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 16

Threaded View

  1. #9
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Writing and Reading Binary data in FORTRAN and C++

    Quote Originally Posted by Vectorprg View Post
    I used exactly same code as you mentioned. But it does not give me the number. dwRead becomes equal to 6 which is less than size of a double number and does not make sense (sizeof(double) = 8)
    I still do not know where is my problem!
    Well, did you do a very simple test Paul mentioned in the post#4:
    Quote Originally Posted by Paul McKenzie View Post
    Why not just write a small C++ program and save 12.54 to a file. Now save 12.54 to a file in your Fortran program. Are both files exactly the same in terms of the bytes they store?
    Last edited by VictorN; April 3rd, 2013 at 01:02 PM.
    Victor Nijegorodov

Tags for this Thread

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