Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How To Use Thread in Win32 C++ Pin
David Crow9-Dec-08 3:07
David Crow9-Dec-08 3:07 
AnswerRe: How To Use Thread in Win32 C++ Pin
Alan Balkany9-Dec-08 3:43
Alan Balkany9-Dec-08 3:43 
QuestionPassing filename from C++ to Fortran Pin
RedSonja8-Dec-08 22:40
RedSonja8-Dec-08 22:40 
AnswerRe: Passing filename from C++ to Fortran Pin
Defenestration8-Dec-08 22:44
Defenestration8-Dec-08 22:44 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja8-Dec-08 22:51
RedSonja8-Dec-08 22:51 
GeneralRe: Passing filename from C++ to Fortran Pin
Defenestration8-Dec-08 22:59
Defenestration8-Dec-08 22:59 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 0:00
sitebuilderLuc Pattyn9-Dec-08 0:00 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 0:09
RedSonja9-Dec-08 0:09 
So many answers, such kind people... This is what I came for.

Anyway, yes, I tried just \r but these were not recognised as strings i.e. IOSTAT was not 0.

READ(5,'(A)',IOSTAT=IOS) FILEN
IF ( IOS .NE. 0 ) STOP 'MUST PROVIDE A FILE NAME'
READ(5,'(A)',IOSTAT=IOS) FLBASE
IF ( IOS .NE. 0 ) STOP 'MUST PROVIDE A ROOT FILE NAME' *** it complained here

Now, with \n or with \r\n it takes the strings and continues. It is the first file it fails to open. I wonder why it complains at the second input and not at the first.
Maybe I should input both in the same string... You may have something there with the line terminators... Shall try that.

-------------
Bibo ergo sum

GeneralRe: Passing filename from C++ to Fortran Pin
Garth J Lancaster9-Dec-08 0:22
professionalGarth J Lancaster9-Dec-08 0:22 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 2:18
RedSonja9-Dec-08 2:18 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 0:23
sitebuilderLuc Pattyn9-Dec-08 0:23 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 1:26
RedSonja9-Dec-08 1:26 
GeneralRe: Passing filename from C++ to Fortran [modified] Pin
RedSonja9-Dec-08 2:03
RedSonja9-Dec-08 2:03 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 2:29
sitebuilderLuc Pattyn9-Dec-08 2:29 
GeneralRe: Passing filename from C++ to Fortran [modified] Pin
RedSonja9-Dec-08 2:33
RedSonja9-Dec-08 2:33 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 2:40
sitebuilderLuc Pattyn9-Dec-08 2:40 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 2:43
RedSonja9-Dec-08 2:43 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 3:12
sitebuilderLuc Pattyn9-Dec-08 3:12 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 5:29
sitebuilderLuc Pattyn9-Dec-08 5:29 
GeneralRe: Passing filename from C++ to Fortran Pin
Garth J Lancaster9-Dec-08 14:09
professionalGarth J Lancaster9-Dec-08 14:09 
GeneralRe: Passing filename from C++ to Fortran Pin
Luc Pattyn9-Dec-08 22:27
sitebuilderLuc Pattyn9-Dec-08 22:27 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 20:52
RedSonja9-Dec-08 20:52 
AnswerRe: Passing filename from C++ to Fortran Pin
cp98769-Dec-08 15:03
cp98769-Dec-08 15:03 
GeneralRe: Passing filename from C++ to Fortran Pin
RedSonja9-Dec-08 20:46
RedSonja9-Dec-08 20:46 
GeneralRe: Passing filename from C++ to Fortran Pin
cp98769-Dec-08 21:03
cp98769-Dec-08 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.