?
Solved

FtpGetFile parameter question

Posted on 2003-12-08
2
Medium Priority
?
626 Views
Last Modified: 2008-03-10
I need to get either a binary or ascii file from a remote server.  I saw postings on EE that the API call could be:

bRC = FtpGetFile(m_hConnect, sRemoteFile, sLocalFile, False, _
                                  INTERNET_FLAG_RELOAD, m_dwFlags, 0)

where I'll set m_dwFlags = FTP_TRANSFER_TYPE_BINARY or to = FTP_TRANSFER_TYPE_ASCII

I read on MS's web site that the INTERNET_FLAG_RELOAD should be or'd w/the m_dwFlags and the 4th parm should be a FILE_ATTRIBUTE_* constant.  So, I changed the API call to be:

bRC = FtpGetFile(m_hConnect, sRemoteFile, sLocalFile, False, _
                         FILE_ATTRIBUTE_NORMAL, m_dwFlags Or INTERNET_FLAG_RELOAD, 0)

What's correct?  Please assign.

Thanks.
0
Comment
Question by:halfondj
[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
2 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 9896137
0
 
LVL 14

Accepted Solution

by:
ajexpert earned 1500 total points
ID: 9896144
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

801 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