Silverfrost Forums

Welcome to our forums

Posts not appearing

6 Jan 2005 7:03 #96

I have already posted this about 5 times now, but I don't see it so I am trying again...

The new build is great! It compiled the project completely unaltered the first time. Amazingly it took about 15 seconds, whereas another well known Fortran compiler for VS takes 10-15 minutes to compile the same project!

I'm not trying to execute this Fotran routine from a C# WinForms application. One of the routines expects the following

SetXXX(Salford.Fortran.Char XXX, int length_of_XXX)

What do I need to pass from C# if I want to pass Application.ExecutablePath (a string)?

  SUBROUTINE SetXXX(VALUE)

  IMPLICIT NONE

  CHARACTER*(*) VALUE
  XXX = VALUE
  END
7 Jan 2005 1:51 #97

In this case I am able to add that directive. It is only a subroutine which I cannot alter, the get/set wrapper code for the common block is my own.

I've tested the routine on a WinForms app and it worked perfectly, I was very happy about it. Unfortunately though I cannot test it on the compact framework because of the copyright form you open at the start of the app, it causes the following exception...

An unhandled exception of type 'System.MissingMethodException' occurred in System.Windows.Forms.dll

I expect that you are using a method which is not supported by the compact framework to show your form.

Is there anything that can be done about this? Maybe change the code to use something compatible, or just introduce a delay instead? I'm so close to seeing if I can get this routine working on a handheld device!

Pete

Please login to reply.