Author |
Message |
Topic: Returning string to .NET in parameters... |
nsinclair
Replies: 7
Views: 7681
|
Forum: Support Posted: Thu Oct 01, 2009 10:15 am Subject: Re: |
Hi Paul,
Have you tried this? In .Net you can change the contents of an object passed by reference, but only if that object in turn has references to its contents (such as properties in an object), ... |
Topic: Returning string to .NET in parameters... |
nsinclair
Replies: 7
Views: 7681
|
Forum: Support Posted: Tue Sep 29, 2009 2:21 pm Subject: Re: |
Yes, but strings are immutable.
For example, this does NOT work:
class Program
{
static void Main(string[] args)
{
string s = &q ... |
Topic: Returning string to .NET in parameters... |
nsinclair
Replies: 7
Views: 7681
|
Forum: Support Posted: Tue Sep 29, 2009 1:38 pm Subject: |
Yes, and I don't see anything about using the strings for output values.
The documentation says that every string as passed as though through a C# 'ref' parameter, but unless this is specified in the ... |
Topic: Returning string to .NET in parameters... |
nsinclair
Replies: 7
Views: 7681
|
Forum: Support Posted: Tue Sep 29, 2009 1:09 pm Subject: Returning string to .NET in parameters... |
Hi,
I have a function that takes 17 string parameters, and returns string values in the last 7.
In Fortran they are output parameters and I can write into them with null terminated strings, but usin ... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Mon Sep 28, 2009 2:11 am Subject: |
G'Day Paul
Followed instruction and copied .MOD file that was created when .DLL was created successfully. It seems that .NET compiles the MODULE correctly and creates the .MOD file within the proje ... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Mon Sep 28, 2009 12:22 am Subject: |
Thanks Paul
I'll have to go away and think about it ... something is not quite working when I use the additional compiler flags as I try to emulate the command line approach in FTN95.
In FTN95 w ... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Sun Sep 27, 2009 2:00 pm Subject: |
Paul, forgot to add that I have a function in the .DLL that receives the initial data (in character strings) which is only used by other functions and subroutines within the .DLL. The results are pass ... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Sun Sep 27, 2009 1:46 pm Subject: |
Thanks Paul
Does this mean that .NET behaves quite differently from FTN95 where I have a .DLL with the data module included which works perfectly well between routines within and outside the .DLL?
... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Sun Sep 27, 2009 12:38 am Subject: |
Thanks Paul. I should have made it clearer that everything was done in .NET. First, I built the .DLL containing subroutines, functions (.FOR code) and the data module (.F95 code). All in one project p ... |
Topic: newbie to .NET in Visual Studio ... |
nsinclair
Replies: 9
Views: 11074
|
Forum: Support Posted: Sat Sep 26, 2009 11:00 am Subject: newbie to .NET in Visual Studio ... |
I have successfully (yet to be tested!) created a .DLL file containing various functions and subroutines in plain old .FOR. I also included a .F95 file for a data module in the solution. Everything se ... |
|