Method to get file path
-
Iam using MFC .In my project,I choose "single document" .while Iam writting,I have a problem that when I choose "File" on menu ,I continue to choose Open .MFC Program display me a dialog which help choose a file .And after I choose file,I don't know how do I get file path .Please help me.Thanks Iam going to post pictures on forum,but I can't find where post it.Iam sorry
-
Iam using MFC .In my project,I choose "single document" .while Iam writting,I have a problem that when I choose "File" on menu ,I continue to choose Open .MFC Program display me a dialog which help choose a file .And after I choose file,I don't know how do I get file path .Please help me.Thanks Iam going to post pictures on forum,but I can't find where post it.Iam sorry
nvphap wrote:
And after I choose file,I don't know how do I get file path .
Your document class has methods for retrieving that.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
nvphap wrote:
And after I choose file,I don't know how do I get file path .
Your document class has methods for retrieving that.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Iam using MFC .In my project,I choose "single document" .while Iam writting,I have a problem that when I choose "File" on menu ,I continue to choose Open .MFC Program display me a dialog which help choose a file .And after I choose file,I don't know how do I get file path .Please help me.Thanks Iam going to post pictures on forum,but I can't find where post it.Iam sorry
-
From your document class(es), you can call CDocument::GetPathName() to get the full pathname. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
After I click button "open" to choose file ,the event or function where I will process to get file path,what is it's name? .Thanks