[VB6/VBA]如何引用 class dll

看板Visual_Basic作者 (gecer)時間8年前 (2016/12/11 21:19), 8年前編輯推噓0(0014)
留言14則, 1人參與, 最新討論串1/1
http://linqtostdf.codeplex.com/releases/view/13681 小弟想要引用上列網址的dll , 但是不知道要如何從它的source code 來看 應該是C#所寫的 但是C#是物件導向語言 需要宣告class , 請教VBA/VB6 如何引用這個dll file 懇請版大們幫忙 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.34.174.37 ※ 文章網址: https://www.ptt.cc/bbs/Visual_Basic/M.1481462393.A.F35.html ※ 編輯: gecer (1.34.174.37), 12/11/2016 21:20:21

12/11 22:44, , 1F
Private Declaere Function xxxxx Lib "shell32.dll"
12/11 22:44, 1F

12/11 22:46, , 2F
接上行 Alias "ShellexecuteA" (ByVal hWnd As Long,
12/11 22:46, 2F

12/11 22:48, , 3F
接上行 ByVal lpOperation As String, Const SW SHOW =
12/11 22:48, 3F

12/11 22:48, , 4F
接上行 5
12/11 22:48, 4F

12/11 22:48, , 5F
---------------------------------------------------
12/11 22:48, 5F

12/11 22:49, , 6F
Private sub commandbutton1_click() '<-用表單按鈕
12/11 22:49, 6F

12/11 22:50, , 7F
Call xxxxxxx(0&, vbNullString, "http://www.
12/11 22:50, 7F

12/11 22:50, , 8F
承上 yahoo.com.tw", vbNullString,
12/11 22:50, 8F

12/11 22:51, , 9F
接上行 vbNormalFocus)
12/11 22:51, 9F

12/11 22:51, , 10F
End sub
12/11 22:51, 10F

12/11 23:07, , 11F
xxxxxx改成Shellexecute
12/11 23:07, 11F

12/11 23:11, , 12F
第一行 Declaere 改成 Declare
12/11 23:11, 12F

12/11 23:22, , 13F
= =
12/11 23:22, 13F

12/11 23:22, , 14F
12/11 23:22, 14F
文章代碼(AID): #1OJL9vyr (Visual_Basic)
文章代碼(AID): #1OJL9vyr (Visual_Basic)