- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm currently porting a working VB6 application in Visual c# but I'm having big troubles converting this external function call to a Fortran DLL.
The VB6 version is
Declare Sub CALC Lib "CALC32.DLL" (ByRef V1 As Single, ByRef V2 As Single)
where V1 is declared as
Public V1(1 To 50) As Single
and V2
Public V2(1 To 100) As Single
In C# I declared
[DllImport("CALC32.DLL")]
static extern void CALC(ref float[] V1, ref float[] V2);
CALC(ref InputData, ref OutputData);
where paramters are declared as
private float[] InputData = new float[50];private float[] OutputData = new float[100];
When the program call the function itexits without any message.
Any suggestion?
Thanks
Cris
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page