FtpFindFirstFile, InternetFindNextFile

mikegrove

New member
Joined
Nov 17, 2006
Messages
4
Programming Experience
10+
I am having issues getting a dir listing using: FtpFindFirstFile, InternetFindNextFile
I always get back a single blank string. I know there are files there.
FtpFindFirstFile returns true but the filename attribute in the WIN32_FIND_DATA stucture is nothing and InternetFindNextFile always returns false.
I am setting the dir using FtpSetCurrentDirectory which returns true. I have tried to verify I am in the correct dir but FtpGetCurrentDirectory dies with 'unable to find entry point' error.
I tried not changing the directory and FtpFindFirstFile return false, so I am pretty sure FtpSetCurrentDirectory is working, but unable to confirm it for sure.
I ported my code from VB6 where it was working.

Thanks
Mike
 
Back
Top