Results 1 to 2 of 2

Thread: Using a DLL (a function in it)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    Exclamation Using a DLL (a function in it)

    At the moment I'm just able to check if the dll and certain functions exist.

    VB Code:
    1. Option Explicit
    2. Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
    3. Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
    4. Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
    5. Private hDll As Long
    6.  
    7. Private Sub Command1_Click()
    8. Dim hFunction As Long
    9. hDll = LoadLibrary(App.Path & "\WC2.dll")
    10.  
    11. If hDll > 0 Then
    12. hFunction = GetProcAddress(hDll, "WA_Link_Raw_Stats")
    13.  
    14. If hFunction = 0 Then
    15. MsgBox "dll: found; function: found"
    16. Else
    17. MsgBox "dll: found; function: not found"
    18. End If
    19. Else
    20. MsgBox "dll: not found"
    21. End If
    22. End Sub

    But what if I want to "get" 'artist', 'bitrate' etc. through that function?

    In MSL I do it like
    $dll(WC2.dll,WA_Link_Raw_Stats,artist)


    Would be great if anyone was able to help me out.

    Thank you.

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    12

    Re: Using a DLL (a function in it)

    Anyone? =(

    (sorry for bumping)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width