vb和FORTRAN之间的字符串参数传递如何实现?
想实现的是:在VB中控制打开一个数据文件,然后传递给FORTRAN程序进行计算,如何将这个文件名传递过去?如何声名?麻烦各位高手给予指点!!谢谢
在VB中我的声明是:
Private Declare Sub SMC Lib "test.dll" Alias "_SMC@20" (ByRef X As Long, ByRef Y As Long, ByRef q As Long, ByRef p As Long, ByVal tsfile As String)
在fortran中是:
SUBROUTINE SMC (p,e,q,r,tsfile)
!DEC$ATTRIBUTES DLLEXPORT :: SMC
character tsfile
integer p,e,q,r
运行时出现"找不到入口在_SMC@20"的提示.
求助各位高手!!