|
-
September 9th, 2002, 02:46 PM
#1
Help with file open from dialog based app.
I tried searching the forum to see if I could find the answer, but I keep getting the following error: "Fatal error: Maximum execution time of 30 seconds exceeded in /www4/codeguru/codeguru/forum/search.php on line 398
"
I also tried searching the net and could not find the info I am looking for, and tried seraching this forum several times but kept getting the error I stated previously.
Anyway, I want to retrieve the file name and path info using the standard Windows Open File dialog, in a dialog based app.
I used the MFC app wizard and created the dialog based app skeleton. I then added the menu resources for File and Open to the dialog, and bound the Open command to an OnFileOpen() function. Now I don't now what to put in this function to get it to do what I want.
I want it to bring up the standard windows Open File Dialog, so that I can browse the files and folders, select the file that I want, and have it return the path and file name info, so I can then open the file for reading and grab some information from the file, etc.
Can anyone help me with this, or provide a link that has this information. And please remeber that I am a newbie to Visual C++, and take that into account when providing any information.
Thanks in advance...
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
|