主题:求助:如何在C++Builder6下调用Fortran动态库?
前两天,在C++Builder下写一个dll调用测试程序.我用C++Buider写.dll程序,C++Builder调用,是可以的,没有任何问题.可是当我要用Visual Fortran 编写了一个dll文件,用C++Builder6来调用,总是出现地址出错问题.不知道为什么?Fortran代码如下:
Function add (a,b)
integer a,b,add
add=a+b
return
end Function
Function add (a,b)
integer a,b,add
add=a+b
return
end Function