Z.K.
2006-07-15 07:15:02 UTC
I have a FormView project and I was wondering if someone could tell me
how to get the name of the file name that is selected when trying to
open or save a file. I don't actually need to open or save a file, I
just need the file name. I tried using the serialize function, but that
did not seem to work for me. I can bring up the save or file dialog,
but I can't seem to actually select the file name that I want so that I
can assign it to a variable and display it in a messagebox. When I try
it using the ar variable, nothing happens. I know I could just use
CFile or CStdioFile to do it, but I wanted to use the open file icon
from the toolbar along with the serialize function.
Z.K.
how to get the name of the file name that is selected when trying to
open or save a file. I don't actually need to open or save a file, I
just need the file name. I tried using the serialize function, but that
did not seem to work for me. I can bring up the save or file dialog,
but I can't seem to actually select the file name that I want so that I
can assign it to a variable and display it in a messagebox. When I try
it using the ar variable, nothing happens. I know I could just use
CFile or CStdioFile to do it, but I wanted to use the open file icon
from the toolbar along with the serialize function.
Z.K.