C# and Wininet.dll question

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Greetings,

I have a VB6 app that uses API's from wininet.dll for FTP-
ing textfiles to and from Mainframe computers and doing
directory searches on the mainframe from a windows desktop
computer, etc. I want to migrate this app to C#. So
before I start re-inventing the wheel (with
InteropServices) can C# perform FTP operations like
wininet.dll? If so, could someone point me (or show me)
some examples of how to do this? If not, I guess I use
System.RunTime.InteropServices to access the wininet.dll
api's?

Thanks,
Rich
 
Rich,

.NET 1.1 doesn't support FTP operations, so you would have to use
WinInet to perform FTP operations (or a third party component).

However, .NET 2.0 supports FTP through the FtpWebRequest and
FtpWebResponse classes.

Hope this helps.
 
Thank you. Is .Net 2.0 available yet? Will it work with
VS2003? Does it come with VS2005?
-----Original Message-----
Rich,

.NET 1.1 doesn't support FTP operations, so you would have to use
WinInet to perform FTP operations (or a third party component).

However, .NET 2.0 supports FTP through the FtpWebRequest and
FtpWebResponse classes.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)



Greetings,

I have a VB6 app that uses API's from wininet.dll for FTP-
ing textfiles to and from Mainframe computers and doing
directory searches on the mainframe from a windows desktop
computer, etc. I want to migrate this app to C#. So
before I start re-inventing the wheel (with
InteropServices) can C# perform FTP operations like
wininet.dll? If so, could someone point me (or show me)
some examples of how to do this? If not, I guess I use
System.RunTime.InteropServices to access the wininet.dll
api's?

Thanks,
Rich


.
 
Back
Top