I'm programming a ftp application to download files from a remote server using wininet API.
When a download fails I want to get the error usign this function
How can I convert the error to a string and then display in a message box?
Thanks!!
When a download fails I want to get the error usign this function
Code:
Declare Auto Function InternetGetLastResponseInfo Lib "wininet.dll" _
(ByRef errorCode As Integer, ByVal buffer As StringBuilder, ByRef bufferLength As Integer) _
As <MarshalAs(UnmanagedType.Bool)> Boolean
How can I convert the error to a string and then display in a message box?
Thanks!!