473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# and Wininet.dll question

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
Nov 16 '05 #1
3 3689
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]
- mv*@spam.guard.caspershouse.com

"Rich" <an*******@discussions.microsoft.com> wrote in message
news:28****************************@phx.gbl...
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

Nov 16 '05 #2
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 useWinInet to perform FTP operations (or a third party component).
However, .NET 2.0 supports FTP through the FtpWebRequest andFtpWebResponse classes.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rich" <an*******@discussions.microsoft.com> wrote in messagenews:28****************************@phx.gbl...
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

.

Nov 16 '05 #3
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!
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Dan | last post by:
I have an app that uses the wininet.dll APIs to get web pages and to post to web forms. My problem is that some of my users systems will literally wait an hour before an Internet call to a site...
0
by: Gerry Abbott | last post by:
Hi All, Im trying to get som ftp functionality into my application, and have some code I sourced from this NG. I'm trying to tailor it for my needs, but need a better understanding of whats...
1
by: Sean Barnes | last post by:
Hello all, I am having a bit a problem with the InternetDial function in the wininet.dll. The problem is that despite passing in a null terminated string as the lpszConnectoid param to the...
6
by: dev | last post by:
Hi to all, I am a sofware developer with few months experience in C#. I worked in C/C++ and, time ago, developed an application to receive a video-stream (MJPEG) via http. Simply I used the...
1
by: Java Writer via .NET 247 | last post by:
Hey Mon!, This runs and gives me a 'iLen' of 4 but returns empty string. I am guessing this is the programmatic way to check Internet Explorer. {Tools}-{Internet Options)-(Settings...). Even...
0
by: Sjaakie Helderhorst | last post by:
Hi all, I'm trying to create a class which handles FTP. Knowing little of classes I'm having some trouble making things work. Also having trouble finding the meaning of some error-codes. The code...
10
by: MLH | last post by:
My A97 runtime installations are sometimes paused during the install process prompting user with messages saying the files are in use. Generally, I tell them to click IGNORE. Although I haven't...
0
by: Nishini | last post by:
I am using "FtpFindFirstFile" function of wininet.dll in my application. I had the Declare statement for this function in my code but when I executed my applicaiton, it gave me an error saying...
0
by: Nishini | last post by:
I am using "FtpFindFirstFile" function of wininet.dll in my application. I had the Declare statement for this function in my code but when I executed my applicaiton, it gave me an error saying...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.