vb.net2005編寫的DLL文件怎麽在delphi中調用?该怎么处理

vb.net2005編寫的DLL文件怎麽在delphi中調用?
vb.net2005編寫的DLL文件怎麽在delphi中調用?

Public Class tDLL

  Public Function getInfo(ByVal sStr As String) As String
  If Len(sStr.Trim) > 0 Then
  Return sStr.Trim
  Else
  Return "No Info"
  End If
  End Function

  Public Function setInfo(ByVal sStr As String) As String
  If Len(sStr.Trim) > 0 Then
  Return "This is as test DLL for set: " + sStr
  Else
  Return "Test DLL for set info fail, Reason: no get Info"
  End If
  End Function
End Class


------解决方案--------------------
增加引用就好了

function getInfo(const sStr: WideString): string; stdcall; external 'DllFileName.dll' name 'getInfo';
------解决方案--------------------
.net的DLL不能直接调用吧?.net的DLL好像是修改了原DLL的协定的。
------解决方案--------------------
.net下的dll只能使用com可见,然后delphi才能使用,把它当成com
------解决方案--------------------
.net的DLL只有在delphi.net下才可用,D7之前的都不能用的.还是做成COM吧
------解决方案--------------------
改了协议还叫什么DLL,MS真是瞎扯。
------解决方案--------------------
.net 的dll 与win32的dll是两个概念