|
-
Dec 28th, 2007, 02:31 PM
#1
Thread Starter
New Member
FtpFindFirstFile returns blank file name
I am converting an FTP class that I was using in VB 6 to Visual Studio 05. I have been able to successfully connect to the FTP site by using the InternetOpen and InternetConnect API calls. After connecting to the site, I want to grab file/folder attributes of files/folders on the FTP site. To do this, I use the FtpFindFirstFile API call. However, whenever I call this function, the call always returns an empty cFileName in the pData structure. (A WIN32_FIND_DATA structure) I am using the below function call.
hFind = FtpFindFirstFile(hConnection, "*.*", pData, 0, 0)
Does anyone have any ideas why this would be the case? I run the same code in VB 6 and the FtpFindFirstFile API call returns the folder name just fine. Note, NO error is thrown when I run this in VS '05. So... any ideas?
Thank you.
Matt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|