如何将vb的函数转换为delphi的呀 ( 积分: 50 )

  • 主题发起人 主题发起人 wcnmdznsq
  • 开始时间 开始时间
W

wcnmdznsq

Unregistered / Unconfirmed
GUEST, unregistred user!
Declare Function ReadTextDataFromIC Lib "DLLInterface.dll" (ByVal comport As String, ByVal outdata As String, ByVal errormessage As String) As Long

Declare Function ReadPicDataFromIC_jpg Lib "DLLInterface.dll" (ByVal comport As String, ByVal errormessage As String) As Long

Public Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nbufferlength As Long, ByVal lpbuffer As String) As Long
 
如果是静态使用DLL,
定义接口声明pas,注意 字符串类型,和ByVal方式
 
function ReadTExtDataFromIC(comport:String,outdata:String,errormessage:String):long external "DLLInterface.dll" name "ReadTextDataFromIC"

类似
 
问题已经解决见者有分
 
后退
顶部