🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
an FTP problem
I''ve been messing around with an FTP class from glVelocity, and have most of the functions operating correctly. I noticed there was on Create Directory, and searched through wininet.h and found there is one. So heres the new function I added:
bool CFTP::CreateDir(char szDirName[MAX_PATH])
{
if(!FtpCreateDirectory(m_hFTPSession,szDirName))
{
return false;
}
return true;
}
Well, in a different function I''ll say:
if(!ftp.CreateDir("dirname"))
{
MessageBox(0,"Could not create directory","Error",MB_OK);
return 0;
}
Everytime I run it, it comes back false, but the directory IS created. Any idea what''s going on and how I can cause it to not come up as an error?
Thanks,
Calypso
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement