I want to use C++ to implement the user interface, and
implement the calculation part with Fortran.
I know I should make Fortran code to be DLL conceptually,but I
don't know what to do in practice.
What directives should I put in the Fortran code?
how to export my subroutine?
and how to call them from C++.NET?
I have installed this Fortran compiler, and it is already integrated in Visaul
Studio .NET 2003.
And can anyone tell me whether it is right?
subroutine demo(m,n,a) !DLLEXPORT !ASSEMBLY_INTERFACE (name = 'demo');
integer4 n; integer4 m; integer*4 a;
a = m + n;
return end subroutine
Thank you very much. ^^