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 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
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
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
| |