first of all i have to say that my english is not the best so please be patient hehe.
now to my problem:
normallyi am a .net developer so i am completely new to the fortran world.
but i have to learn it for my job :)
i wrote a class library in vb.net to get,send and delete files from a server over ssh. in vb.net the library works well.
now i want to use this dll. within fortran and so i wrote an interface to load the dll and uses the specific methods.
heres the code example i already wrote as an console application:
use dfwin, only: LoadLibrary, GetProcAddress
function SendFileToSSH (host,port,user,passWord,path,fileName,loadFromPath) Result (res)
!DEC$ ATTRIBUTES STDCALL, DECORATE, ALIAS : 'SendFileToSSH' :: SendFileToSSH
!DEC$ ATTRIBUTES REFERENCE :: host
!DEC$ ATTRIBUTES REFERENCE :: port
!DEC$ ATTRIBUTES REFERENCE :: user
!DEC$ ATTRIBUTES REFERENCE :: passWord
!DEC$ ATTRIBUTES REFERENCE :: fileName
!DEC$ ATTRIBUTES REFERENCE :: loadFromPath
! DEC$ ATTRIBUTES REFERENCE :: res
end function SendFileToSSH
lpSendFileToSSH = GetProcAddress(hk32Lib,"SendFileToSSH"C)
end program test
if i debugs this code i can see that lpSendFileToSSH getting 0 as value which is probably wrong i think.
can you help me finding out what i have done wrong?