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

vb6 call dll api in other folder

$
0
0
Code:

Private Declare Function Add Lib "AComDll_Thread" (ByVal A As Long, ByVal B As Long) As Long

Private Sub Form_Load()
    Dim DllPath As String, NowPath As String
    DllPath = App.Path & "\dll"
    DllPath = "Z:\test"
    NowPath = App.Path
    ChDrive Left$(DllPath, 2)
    ChDir DllPath
    '-----------------------
    MsgBox Add(3, 4)
    '-----------------------
    ChDrive Left$(NowPath, 2)
    ChDir NowPath
   
    MsgBox App.Path
End Sub


Viewing all articles
Browse latest Browse all 1529

Trending Articles



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