以下是别人提供给我的VB调用DLL的函数,但我不知VB请大侠们根据VB的函数的写法给我写成可调用的函数.
Declare Function cd5111 Lib "comdll2" (ByVal str As String) As Long
Public Declare Function SetWindowText Lib "user32" _
Alias "SetWindowTextA" (ByVal hwnd As Long, _
ByVal lpString As String) As Long请将上面两个函数转成DELPHI的函数.Private Sub Command1_Click()
Dim test As String
test = Text1.Textcd5111 testEnd Sub
Declare Function cd5111 Lib "comdll2" (ByVal str As String) As Long
Public Declare Function SetWindowText Lib "user32" _
Alias "SetWindowTextA" (ByVal hwnd As Long, _
ByVal lpString As String) As Long请将上面两个函数转成DELPHI的函数.Private Sub Command1_Click()
Dim test As String
test = Text1.Textcd5111 testEnd Sub
解决方案 »
- 如何判断软件中是否有弹出对话框?
- fastreport打印的内容挺多,一页放不下。
- 关于按键事件的处理
- 一个动态产生控件的问题!!在线等!!!
- 可否开事务?
- 10分的小问题:怎么在按钮的caption中增加换行?!
- 请问我用RegisterWindowMessage()注册的系统消息如何在DELPHI中进行定义?谢谢!
- 怎样做一个定时备份并自动删除的过期备份的程序,请高手指点!邮箱为[email protected]
- 求教:为什么别人编的程序在我地方老说 Left side cannot be assigned to
- 新近回来,大家有赏!!!!!!!!!!!
- 用messagedlg时出现的问题
- 关于RecNo,求救!!
Function SetWindowText(hwnd : Long;lpString : String) : Long;
老兄看来你也没有看明白VB的函数,它是在调用comdll2.dll,你只是给我写了一个简单的函数!
Declare Function cd5111 Lib "comdll2" (ByVal str As String) As Long
这个函数是VB用写的调用comdll2.dll往端口上发字符串,
我的意思是这个函数在中应该怎样写?这个comdll2.dll是别人写好的.