cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Windows Programming : About the CDocument::OnSaveDocument
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  About the CDocument::OnSaveDocument

LeviZhou (12)
If I call this function CDocument::OnSaveDocument( lpszFileName ) and failed,

if the lpszFileName can be created or not?

Thanks
|
Duoas (1456)
According to MSDN
http://msdn.microsoft.com/en-us/library/sd83ta1b(VS.80).aspx

it will fail if the filename is not fully-qualified (meaning it must not be relative).

It can also fail if you don't have write permission on the target directory or file and some other esoteric things.

Check the result to decide what to do.
If the method returns FALSE then something went wrong.
If the method returns TRUE then the file saved properly.

Good luck!
| Last edited on

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us