![]() |
|
#1
|
|||
|
|||
Problem in saving file as .txti'm using the CFileDialog filedialog(FALSE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Text Files (*.txt)|*.txt|Document Files (*.doc)|*.doc|All Files (*.*)|*.*||"), this) to limit as my DoModal() file type.. when i save a file i choose my file type as .txt but in the actual fie destination it does not appear as a .txt file it just display as a window file as type File.
Did there have any solution about this? |
|
#2
|
|||
|
|||
|
Hi,
The second parameter is for Extension of the file... it seems u have placed NULL there... it means no extension for the file.. CPP / C++ / C Code:
Is it... OK Best Regards, Janakiraman Last edited by LuciWiz : 29-Apr-2005 at 04:54.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#3
|
|||
|
|||
|
Quote:
This is my code look like CFileDialog filedialog(FALSE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("Text Files (*.txt)|*.txt|Document Files (*.doc)|*.doc|All Files (*.*)|*.*||"), this); is there anyhting need to be change? |
|
#4
|
||||
|
||||
|
Hello,
You could try this: CPP / C++ / C Code:
If not you could look at the following example for answers. I just broke down the process in small steps: CPP / C++ / C Code:
I do hope this helps. - Stack Overflow __________________
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [C] / [C++] tags. Your question may have been asked before, try the search facility. |
|
#5
|
|||
|
|||
|
Thanks.. i get it already...
|
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 09-Mar-2004 23:56 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The