Solved

FtpGetFile parameter question

Posted on 2003-12-08
2
625 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 500 total points
ID: 9896144
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

696 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