Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API wininet InternetGetLastResponseInfo

Status
Not open for further replies.

tuzojazz

Programmer
Dec 26, 2005
58
MX
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
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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top