Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP - WinInet.dll
Message
De
25/08/2001 04:20:01
 
 
À
24/08/2001 18:09:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00547046
Message ID:
00549113
Vues:
23
Hi, Bruce

There are a couple of things you're not doing right: the file mask must be empty, NULL or something with not spaces in it; the Win32_find_data is a complex structure longer than MAX_PATH (hence the blow-up) and must be passed as reference; finally, the last 2 parameters must swap their position (another potential cause for disaster, although probably no harm has been done in this particular situation).

I've never used this function but, unless this info is enough for you to put things right, I'll try to give you a hand and post a coded solution.


>I appreciate your help and I am getting a book next week that will hopefully help me out, by using your code, or a derivitive of I am now trying to use the FtpFindFirstFile function and it blows VFP out of the water with a Fatal error.
>
>I Was just wondering if you had an success with this command.
>
>Here is what I am using as a command:
>lcFileMask = ' '
>lcWin32FindData = space( MAX_PATH )
>
>lnFileHndl = FtpFindFirstFile( lnFTPSession, @lcFileMask, lcWin32FindData, 0, INTERNET_FLAG_RELOAD )

bye
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform