April 3rd, 2013, 01:11 PM
Case1: using ReadFile()
#define BUF_SIZE 5000
BOOL bSuccess = FALSE;
bSuccess = ReadFile( V_hChildStd_OUT_Rd, Buf, BUF_SIZE, &dwRead, NULL);...
April 3rd, 2013, 12:36 PM
Yes, If I write 12.54 to a binary file ( not console) with FORTRAN and then read that binary file with C++ it works fine. But in thatcase I am using ifstream to read the file and not using ReadFile()...
April 3rd, 2013, 11:10 AM
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)
April 2nd, 2013, 07:55 PM
Thanks for the useful information. I think I did a similar case before:
If I write 12.54 to a binary file ( not console) with FORTRAN and then read that binary file with C++ it works fine. But in...
April 2nd, 2013, 07:22 PM
As you know there are two formats: ASCII format (which is readable by human) and Binary format (which is computer language). I am now working with ASCII format which means I write the actual number...
April 2nd, 2013, 06:44 PM
I am writing a double number in Binary format to the console of program A (in FORTRAN) with the following code:
A = 12.54
INQUIRE(6, name = xstring)