Solved

Sending files through FTP on Visual C++ code

Posted on 2002-05-02
8
179 Views
Last Modified: 2010-04-02
I am interested in repeatadly sending files through FTP from my software.

As my project compiles and runs as a system service, Microsoft does not recommend (or even blocks) using the WinInet.

Can I use other libraries,

or else,

Where can I get (or even purchase) a reliable object that will allow me to send the files through FTP?

0
Comment
Question by:u_sheffer
8 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 200 total points
Comment Utility
Can you provide the reference that says WinIne/FTP is blocked when running as a system service?

If the blocking is caused by a security problem, you can use LogonUser and ImpersonateLoggedOnUser before starting the WinInet APIs.  This is a common technique for services.

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
I found one reference http://search.microsoft.com/gomsuri.asp?n=1&c=rp_Results&siteid=us/dev&target=http://support.microsoft.com/support/kb/articles/q238/4/25.asp

But it seems to indicate that the problem is seen only with SSL and/or a large number of simultaneous connections.

-- Dan
0
 
LVL 22

Expert Comment

by:ambience
Comment Utility
if its going to be a service that uses FTP when no user has logged on then use Winsock, better try to find a socket based FTP implementation, you may find some samples on FTP using sockets, so you dont have to implement everything from scratch.

Otherwise as mentioned by DanRollins Impersonate a user.
0
 
LVL 32

Expert Comment

by:jhance
Comment Utility
>>>Microsoft does not recommend (or even blocks) using
the WinInet.

Hmmm, that's news to me.  That means that the various Wininet apps I've written don't really work.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
hi u_sheffer,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
hi u_sheffer,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
Dear u_sheffer

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "DanRollins"

comment(s) as an answer.

If you think your question was not answered at all, you can explain here why you want to do this and post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
Comment Utility
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now