Solved

FtpGetFile parameter question

Posted on 2003-12-08
2
621 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
  • 2
2 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 9896137
0
 
LVL 14

Accepted Solution

by:
ajexpert earned 500 total points
ID: 9896144
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
Problem to skip loop 6 57
How to set the sa password in a vb6 code for sql connection 9 52
clicking a shape in a frame array vb6 3 45
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

786 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