Paul,
This dll seems better. When I run the test program below in the debugger larg is reported correctly although the full string is not displayed.
program argtest
character*160 carg
call get_command_argument(1,carg,larg)
write(*,1001)carg
1001 format(a160)
stop
end
I compile this in command mode using FTN95 /check. I run it using the following batch file.
argtest '1abcdefghijklmnopqrstuvwx
2abcdefghijklmnopqrst vwx3abcdefghijklmnopqrstuvwx
4abcdefghijklmnopqrstuvwx5abcdefghijklmnopqrstuvwx
6abcdefghijklmnopqrstuvwx'
The argument is 150 long in groups of 25 characters with one space. In my file there are no carriage returns but this posting failed when I put the whole thing in as one word. I run the debugger from a command line as well, then paste the command above into the window.
This may seem a strange thing to worry about, but we sell analysis software to engineering consultancies. Modern engineers who have grown up with windows try to run our program in directories like
c:\documents and settings\engineering\my documents\projects
\company name\project title\hydrodynamics\model 1\low damping\results ....
I'm sure you get the idea. When you drop a data file onto a desktop icon the entire path is passed to the program.
Richard