User Profile

Collapse

Profile Sidebar

Collapse
David Hsu
David Hsu
Last Activity: Dec 3 '10, 05:14 AM
Joined: Dec 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • David Hsu
    replied to How to link Visual Studio C to Fortran DLL?
    in C
    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
    See more | Go to post

    Leave a comment:


  • David Hsu
    started a topic How to link Visual Studio C to Fortran DLL?
    in C

    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;
    ...
    See more | Go to post
    Last edited by Niheel; Dec 2 '10, 10:39 PM. Reason: Please use code tags when showing code
No activity results to display
Show More
Working...