Function name help
-
Folks, I KNOW there is a function I can use to ensure that a directory path exists. Basically, it will enumerate through all the folders in your path, an if it doesn't exist it will create it UNKNOWNFUNCTIONAME ("C:\Name\Address\PhoneNumber"); If only C:\Name exists, it creates Address and Phone Number. I'm working in VC6.0.... heelp.. Thx. doner@obtain.com
-
Folks, I KNOW there is a function I can use to ensure that a directory path exists. Basically, it will enumerate through all the folders in your path, an if it doesn't exist it will create it UNKNOWNFUNCTIONAME ("C:\Name\Address\PhoneNumber"); If only C:\Name exists, it creates Address and Phone Number. I'm working in VC6.0.... heelp.. Thx. doner@obtain.com
There is a function MakeSureDirectoryPathExists(PCSTR Pathname) This function however is located in dbghelp.dll which you can /nedd to ;) distribute with your application. for more information have a look in MSDN Platform SDK cheers Rainer
-
Folks, I KNOW there is a function I can use to ensure that a directory path exists. Basically, it will enumerate through all the folders in your path, an if it doesn't exist it will create it UNKNOWNFUNCTIONAME ("C:\Name\Address\PhoneNumber"); If only C:\Name exists, it creates Address and Phone Number. I'm working in VC6.0.... heelp.. Thx. doner@obtain.com
I use this:
#include BOOL FileExists(CString fn)
{
BOOL exists = FALSE;
if (!fn.IsEmpty()))
{
int status = _access((const char*)fn, 0);
if (status == 0)
{
exists = TRUE;
}
}
return exists;
}"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001