vb編寫的dll:註冊dll,引用dll,private xxx as dll中的類名,在form_load中初始化:set xxx = new dll中的類名或:註冊dll,set xxx = createobject("工程名.類名")vc 編些的標準dll:private|public declare function|sub 函式名 lib "dll名" [Alias "dll中的函式名"](引數) as 返回值型別例:Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
vb編寫的dll:註冊dll,引用dll,private xxx as dll中的類名,在form_load中初始化:set xxx = new dll中的類名或:註冊dll,set xxx = createobject("工程名.類名")vc 編些的標準dll:private|public declare function|sub 函式名 lib "dll名" [Alias "dll中的函式名"](引數) as 返回值型別例:Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long