HI Everyone
Does anybody have any experience of calling a 32 fortran dll from C#. I have no knowledge of C# and the client has no knowledge of Fortran
I can successful transfer integer and Double precision data to/from the DLL but character strings become corrupt
I can successful transfer data to the DLL but the data in the common block becomes corrupt when i try to read the data back.
F_stdcall Subroutine mov_data_str (imode, cbuff80)
integer imode character *80 cbuff80
chactacter*80 string1 common/ saved_data\ string1
if(imode.eq.0) then string1 = cbuff80 else cbuff80 = string1 endif
end
im assuming that it has something to do with the way the C# call is defined (pass by reference using the 'out' qualifier) and/or how the actual character variable is define in the C#
All responses appreciated
steve