Connecting Tech Pros Worldwide Help | Site Map

C# and Wininet.dll question

Rich
Guest
 
Posts: n/a
#1: Nov 16 '05
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
Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: C# and Wininet.dll question


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]
- mvp@spam.guard.caspershouse.com



"Rich" <anonymous@discussions.microsoft.com> wrote in message
news:28fa01c4de1d$919845b0$a301280a@phx.gbl...[color=blue]
> 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[/color]


Rich
Guest
 
Posts: n/a
#3: Nov 16 '05

re: C# and Wininet.dll question


Thank you. Is .Net 2.0 available yet? Will it work with
VS2003? Does it come with VS2005?
[color=blue]
>-----Original Message-----
>Rich,
>
> .NET 1.1 doesn't support FTP operations, so you would[/color]
have to use[color=blue]
>WinInet to perform FTP operations (or a third party[/color]
component).[color=blue]
>
> However, .NET 2.0 supports FTP through the[/color]
FtpWebRequest and[color=blue]
>FtpWebResponse classes.
>
> Hope this helps.
>
>
>--
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
>
>
>"Rich" <anonymous@discussions.microsoft.com> wrote in[/color]
message[color=blue]
>news:28fa01c4de1d$919845b0$a301280a@phx.gbl...[color=green]
>> Greetings,
>>
>> I have a VB6 app that uses API's from wininet.dll for[/color][/color]
FTP-[color=blue][color=green]
>> ing textfiles to and from Mainframe computers and doing
>> directory searches on the mainframe from a windows[/color][/color]
desktop[color=blue][color=green]
>> 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[/color]
>
>
>.
>[/color]
Rajagopal Pasupuleti
Guest
 
Posts: n/a
#4: Nov 16 '05

re: C# and Wininet.dll question


Check this third party .NET FTP Controls

PowerTCP FTP for .NET from Dart Communications.

www.rebex.net/ftp.net/

--
rajagopal

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread


Similar C# / C Sharp bytes