Foxtable(狐表)用户栏目专家坐堂 → VB.NET源码修改


  共有3003人关注过本帖树形打印复制链接

主题:VB.NET源码修改

帅哥哟,离线,有人找我吗?
land089
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:451 积分:3045 威望:0 精华:1 注册:2012/7/17 22:08:00
VB.NET源码修改  发帖心情 Post By:2014/6/2 7:36:00 [只看该作者]

哪位大侠帮我改下源码!谢 谢!
主要是DLL引用,谁帮我看看怎么改成狐表的代码!
Public Class FormPassword
    Inherits System.Windows.Forms.Form
    Dim NetDog As New Dog
End Class

Public Class Dog

    Public DogBytes As Integer = 0
    Public DogAddr As Integer = 1
    Public DogCascade As Integer = 0
    Public NewCascade As Integer = 0
    Public DogPassword As Integer = 0
    Public NewPassword As Integer = 0
    Public DogResult As Integer = 0
    Public CurrentNu As Integer = 0
    Public DogData(199) As Byte
    Public RetCode As Integer = 0

    Declare Function Check_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByRef RetCode As Integer) As Integer
    Declare Function Read_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByVal DogAddr As Integer, ByVal DogBytes As Integer, ByVal DogData() As Byte, ByRef RetCode As Integer) As Integer
    Declare Function Write_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByVal DogAddr As Integer, ByVal DogBytes As Integer, ByVal DogData() As Byte, ByRef RetCode As Integer) As Integer
    Declare Function Convert_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByVal DogBytes As Integer, ByVal DogData() As Byte, ByRef DogResult As Integer, ByRef RetCode As Integer) As Integer
    Declare Function DisableShare_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByRef RetCode As Integer) As Integer
    Declare Function SetPassword_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByVal NewPassword As Integer, ByRef RetCode As Integer) As Integer
    Declare Function SetCascade_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByVal DogPassword As Integer, ByVal NewCascade As Integer, ByRef RetCode As Integer) As Integer
    Declare Function GetCurrentNo_Dog Lib "htbdog.dll" (ByVal DogCascade As Integer, ByRef CurrentNu As Integer, ByRef RetCode As Integer) As Integer

End Class

[此贴子已经被作者于2014-6-4 0:22:32编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
狐狸爸爸
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251397 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2014/6/3 9:43:00 [只看该作者]

把上面的代码,复制到foxtable的全局代码中:

http://www.foxtable.com/help/topics/1842.htm

http://www.foxtable.com/help/topics/2417.htm

 


 回到顶部
帅哥哟,离线,有人找我吗?
land089
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:451 积分:3045 威望:0 精华:1 注册:2012/7/17 22:08:00
  发帖心情 Post By:2014/6/4 0:22:00 [只看该作者]

找到问题了,dll在foxtable里面引用了一次。
Public Class FormPassword
    Inherits System.Windows.Forms.Form
    Dim NetDog As New Dog
End Class

Public Class Dog
End Class
狐爸狐表里不能定义类吗?

 回到顶部