thanks a lot, it`s ok to write message on the screen for Fortran DLL. But the output still wrong for this code,now I consider about the using of :void main (void)
is this right for sneding input and output, or I should edit it?
thank you very muck
User Profile
Collapse
-
How to link Visual Studio C to Fortran DLL?
here is my code:
Visual C:
Code:********************************** #include <stdio.h> #include <stdlib.h> extern __declspec(dllimport) void _stdcall abcd(float *aa , float *bb , float *cc , float *dd); void main (void) { float aa=1.0; float bb=2.0; float cc=3.0; float dd; abcd(&aa,&bb,&cc,&dd); printf("dd=%f",dd); return;
No activity results to display
Show More
Leave a comment: