Re: Fortran compiled executable form visual basic




<akansha.khandelwal@xxxxxxxxx> wrote in message
news:1151440730.599339.244500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

i have a fortran compiled executable that generates an output txt file.
It runs absolutely fine when run from dos..

I need to call the executable from an excel macro written in Visual
Basic.
I do this using shell command. The shell command returns a number
(probably task sequence) which proves that the fortran exe is executed
but output file is not generated.

Can anyone please help me with it... quick response will be highly
appreciated


Regards,
Akansha


Best thing would be to modify the Fortran code to include a pause action, so
you can *see* that it runs.

I can't remember if the shell command returns a task id even if the program
does not run - I would check that first. Then I would modify the shell
command so that the shelled program is run maximised, with focus, to ensure
that it really does run. Finally, I would consider running the program
through a batch file, to see what the working directory is - this is not
always the same as the executable launch directory.


.



Relevant Pages

  • Re: READ-statement and a segmentation fault
    ... only the third reference is allowed to modify its argument. ... or pass a pointer to the Fortran variable. ... doesn't forbid! ... The rule in F2003 is "The evaluation of a function reference shall ...
    (comp.lang.fortran)
  • Re: Basic question on local variable
    ... Yes, as far as I know Fortran never adopted that ability, and even if it did guarantee to pass a temporary, as far as I know you are still not allowed to modify it. ... How the compiler does this isn't specified ... code and has nothing to do with call by value or reference. ...
    (comp.lang.fortran)
  • Re: Basic question on local variable
    ... Yes, as far as I know Fortran never adopted that ability, and even if it did guarantee to pass a temporary, as far as I know you are still not allowed to modify it. ... How the compiler does this isn't specified ... code and has nothing to do with call by value or reference. ...
    (comp.lang.fortran)
  • Re: Address of a constant
    ... Value-result, in the days before INTENT, _would_ modify the caller's ... It would be distinguishable from by-reference only by multiple ... but it wouldn't provide the FORTRAN (pre ... INTENT) semantics of allowing changes to any argument. ...
    (comp.lang.c)
  • Re: Basic question on local variable
    ... Yes, as far as I know Fortran never adopted that ability, and even if it did guarantee to pass a temporary, as far as I know you are still not allowed to modify it. ... Fortran compilers are allowed to optimize out the parenthesis in y = addten), ...
    (comp.lang.fortran)