A
AlanL
I am calling a Fortran DLL that has a declaration like: character * 260
variablename. I do not have the Fortran code. A path to a file is
passed to the DLL.
C# does not have a fixed character length. I can use vba or vb6 with
Dim variablename as String * 260 and it works. However, I can not get
this to work in C#. The DLL returns a value denoting that the file is
not found. I even concatenated spaces to the string to make sure it
had 260 characters. No luck.
I have no idea how to pass this required parameter to the Fortran DLL
with C#.
Any ideas? Thank you.
variablename. I do not have the Fortran code. A path to a file is
passed to the DLL.
C# does not have a fixed character length. I can use vba or vb6 with
Dim variablename as String * 260 and it works. However, I can not get
this to work in C#. The DLL returns a value denoting that the file is
not found. I even concatenated spaces to the string to make sure it
had 260 characters. No luck.
I have no idea how to pass this required parameter to the Fortran DLL
with C#.
Any ideas? Thank you.