Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

READ not working

$
0
0

I am developing a windows dialog based program and have a problem with:

       num = GetDlgItemText(hwDlg, IDC_M1, myBuffer,20)
       If (num /= 0) Then
          iostatus = 1
          do while (iostatus /= 0)
             Read(myBuffer,*,iostat=iostatus) X
          end do

myBuffer = '25.6                  '
num = 4
and X = garbage
iostatus = 59

without the do while and the iostat, the program has a break at the read statement. When I programmed in C++, there was a lock function to keep myBuffer in real ,memory so the i/o works. This is part of a callback routine. What can I do to fix this?

Brooks


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>