Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

vb6 RemoveAddIn_Self

$
0
0
Code:

  Public VBInstance            As VBIDE.VBE

Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long


  Function RemoveAddIn_Self() As Boolean
On Error GoTo err
    Dim addIn1  As AddIn
    Set addIn1 = VBInstance.Addins("VB6_PackageManager.Connect")
    RemoveAddIn_Self = True
    Unload frmAddIn
    Set VBInstance = Nothing
    addIn1.Connect = False
   

    Set addIn1 = Nothing
    Dim H As Long
    H = LoadLibrary("VB6PackageManager.dll")
    If H = 0 Then MsgBox "h0"
    FreeLibrary H
       
 
    Exit Function
err:
    MsgBox "err-RemoveAddIn_Self:" & err.Number & "," & err.Description
End Function


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>