-
January 27th, 2012, 04:27 AM
#1
CDocument::GetPathName() returns empty string for relative path
I have a requirement where i need to change a relative path to an absolute path when saving a file thru "Save As" . In order to do that i need to get the entire path of the file name of the source path.
The CDocument::GetPathName() should return the absolute path name. But it returns an empty string.
This happens only for the first time. Second time onwards the GetPathName() returns the correct absolute path of the source.
When it happens for the first time, the business logic needs to be executed based on the absolute path of the source. But since it returns the empty string i am unable to proceed
Can anyone help me with this regard?
-
January 28th, 2012, 02:25 PM
#2
Re: CDocument::GetPathName() returns empty string for relative path
Well do you know the "default" directory where your files are about to be saved?
Victor Nijegorodov
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
|