Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FtpOpenFile
Message
De
01/02/2006 12:39:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01092401
Message ID:
01092421
Vues:
19
You miss the #define constants
#define MAX_PATH 260
#define NO_ERROR  0
#define ERROR_INTERNET_EXTENDED_ERROR 12003
#define ERROR_NO_MORE_FILES  18
#define FILE_ATTRIBUTE_READONLY  0x1
#define FILE_ATTRIBUTE_HIDDEN  0x2
#define FILE_ATTRIBUTE_SYSTEM  0x4
#define FILE_ATTRIBUTE_DIRECTORY  0x10
#define FILE_ATTRIBUTE_ARCHIVE  0x20
#define FILE_ATTRIBUTE_NORMAL  0x80
#define FILE_ATTRIBUTE_TEMPORARY  0x100
#define FILE_ATTRIBUTE_COMPRESSED  0x800
#define FILE_ATTRIBUTE_OFFLINE  0x1000
#define INTERNET_FLAG_PASSIVE  0x8000000
#define INTERNET_FLAG_RELOAD  0x80000000
#define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
#define FORMAT_MESSAGE_IGNORE_INSERTS  0x00000200
#define FORMAT_MESSAGE_FROM_STRING     0x00000400
#define FORMAT_MESSAGE_FROM_HMODULE    0x00000800
#define FORMAT_MESSAGE_FROM_SYSTEM     0x00001000
#define FORMAT_MESSAGE_ARGUMENT_ARRAY  0x00002000
#define FORMAT_MESSAGE_MAX_WIDTH_MASK  0x000000FF
#define INTERNET_OPEN_TYPE_PRECONFIG  0
#define INTERNET_INVALID_PORT_NUMBER  0
#define INTERNET_SERVICE_FTP  1
#define FTP_TRANSFER_TYPE_BINARY  0x2
#define FTP_TRANSFER_TYPE_ASCII  0x1
#define GENERIC_WRITE 0x40000000
#define GENERIC_READ 0x80000000
#define GENERIC_EXECUTE 0x20000000
#define GENERIC_ALL 0x10000000
>Hi all,
>I have been using some code that Scott Ramey ver nicely posted for me and its going well but i am having a problem using this function, FtpOpenFile. the original section of code that he gave me was
>
>lhFTPFile = FtpOpenFile( lhFTPSession, This.FTPSendTargetName,;
>                GENERIC_WRITE,;
>                INTERNET_FLAG_RELOAD + FTP_TRANSFER_TYPE_BINARY, 0)
>
>but the program was complaining about GENERIC_WRITE so i put that in quotes. then it complained about the next parameter so i changed that to be "FTP_TRANSFER_TYPE_BINARY" but now it is complainaing about a data type mismatch. i have checked the web and any examples i find don't use quotes but if i dont i get the error variable GENERIC_WRITE not found etc. all i am trying to do is send a file up to an ftp server and then take one down.
>Slán
>~M
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform