Results 1 to 2 of 2

Thread: call adll

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    call adll

    hi all
    i'm try to call dll that returns two parameters.
    how can i call this dll using vb6.

    this is the dll design:

    void mt_request
    (
    Input:
    char* str_parameters – fixed communication parameters (see above, section 2)
    char* str_mt_request – a request string formatted according to the MT3 protocol.

    Output:
    char* int_error_code – fixed error code parameter (see above, section 2)
    char* str_mt_response – a response string formatted according to the MT3 protocol.

    )

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: call adll

    If that si a stndard c++ dll then declare it like windows api:
    Code:
    Private Declare Function mt_request Lib "kernel32" )
        (ByVal parameters As String, ByVal mt_request As String, _
        ByVal error_code As String, ByVal mt_response As String) As Long
    Note: not sure about error_code being a String anot Long - is that a typo in your post?

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