Rss & SiteMap

搭建论坛 http://bbs.diylsoft.com:8118/starforum/index.asp

搭建论坛是“搭建式”中文软件开发工具《搭建之星》、《网站·搭建者》技术交流的地方。
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[原创]这个dll用星怎样调用.

1楼
xyf 发表于:2006-4-21 20:27:38

这个dll用VB可以轻松的正确调用,但是到星中我多次试验都不成功.不知道用星该如何设置,请高手做个简单的例子.

由于文件无法上传我把用VB调用的源码附上大家看看

Private Sub Form_Load()
Dim strSoftName As String
Dim strSoftID As String
Dim strSoftDesc As String
Dim ownerHWnd As Long
Dim strReserve As String

Dim ret As Integer

strSoftName = "截图工具"
'注意:此softID必须为六位数字串.
strSoftID = "101059"
'软件描述.
strSoftDesc = "截图工具 "
ownerHWnd = 0
'保留字节
strReserve = ""
ret = registerMe(strSoftName, strSoftID, strSoftDesc, ownerHWnd, strReserve)

If ret <> 0 Then
MsgBox "注册成功."
End If


End Sub

相关说明:

'========================================
'函数: registerMe
'功能: 注册合作软件.
'返回值: 0失败.
' 非0成功.
'
'参数: strSoftName: 软件名称.
' strSoftID 软件ID.(此参数必须为6位数字串).
' strSoftDesc 软件描述.
' ownerHWnd
' strReserve 保留字符串.
Public Declare Function registerMe Lib "dmshell.dll" (ByVal strSoftName As String, ByVal strSoftID As String, ByVal strSoftDesc As String, ByVal ownerHWnd As Long, ByVal strReserve As String) As Integer

'=======================================
'函数: stopAd
'功能: 停止
'返回值: 无
'参数: 无
Public Declare Function stopAd Lib "dmshell.dll" ()

2楼
sxxzxg 发表于:2006-4-29 19:53:28

我也想知道,高手帮帮忙。

共2 条记录, 每页显示 10 条, 页签: [1]

搭建之星 网站·搭建者 Copyright © 2000 - 2011
Powered By Dvbbs Version 8.2.0
Processed in 0.01172 s, 3 queries.