-
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.
)
-
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?