Solved

MFC CFtpConnection Questions...

Posted on 1997-04-16
4
983 Views
Last Modified: 2013-11-20
I'm working on a little FTP program for Windows.  I'm using the MFC Internet classes, including CInternetSession and FtpConnection.  Everything works great (I can do dirs, u/d files, etc.), but I haven't been able to get the tandard login welcome Screen most FTP servers send.  Is there some say to do this, using the MFC FTP Classes?

I've also tried deriving a class from CInternetSession, verriding the OnStatusCallback() method, but that didn't seem to do much...

Here's an example of what I'm doing:


CInternetSession *cSession;
CFtpConnection   *pFtp;    

cSession = new CInternetSession( (LPCTSTR)"www.netside.com", 0,
INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, NULL);
pFtp = cSession->GetFtpConnection("www.netside.com", "rat", "lander", 21, FALSE);

// ... Directory Read code, then some copy stuff after this.


Thanks,


-Greg Ratajik
rat@netside.com
0
Comment
Question by:ratajik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Expert Comment

by:mikeblas
ID: 1301042
What "standard login screen" are you talking about?  Since FTP is a text-based protocol, it doesn't send "screens" around.

.B ekiM

0
 

Author Comment

by:ratajik
ID: 1301043
Argh.. sorry, I should have been more specific.  A lot of servers, when you first logon, send a text description of the server.  I've seen it refered to the Logon message or the Welcome Message.  When I said "Screen" I was refering to that....


-Rat
0
 
LVL 4

Accepted Solution

by:
mbhakta earned 100 total points
ID: 1301044
I avoid MFC's CInterenet features as far as possible. Instead I use the Wininet.dll to attack my FTP related problems. You may also look into the same and see if it helps you.
0
 

Author Comment

by:ratajik
ID: 1301045
Yeah, that's what I was afraid of.  I've actually written a fair amount of TCP/IP stuff (Some for IBM, some POP3, SMTP, and NNTP stuff... I was WISHING that M$ did it right and I could just focus on writting my program and not yet another protocal class.

Oh well, par for course, eh? :)

Thanks.

-Greg
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question