I am using exactly the same code as given in the tutorial.
[code=cpp]
this->UpdateData() ;
CFile f;
//char strFilter[] = { "Doc Files (*.doc)|*.doc|A ll Files (*.*)|*.*||" }; ///////This Option doesn't work
char strFilter[] = { "Txt Files (*.txt)|*.txt|A ll Files (*.*)|*.*||" };
//CFileDialog FileDlg(TRUE, ".doc", NULL, 0, strFilter);
CFileDialog...
User Profile
Collapse
-
Last edited by sicarie; Apr 9 '08, 01:11 PM. Reason: Code tags are [code=cpp] and after your code [/code]. Please use them. They want to be used. They like to be used. -
Thanks for the reply. that solves my problem halfway.
What if I want to open the doc file in m/s word? Also I tried opening big txt file (containing only numbers). But it could open only few lines out of it. Any suggestions for this?...Leave a comment:
-
Thank you for the suggestion. I'll go through the manual you suggested and come back to you. By the way, the default FILE->OPEN dialog box actualy does nothing when user try to open any file. I want specificaly : Opening any file for editing or reading purpose by any means (Menu bar or button click). Any particular message map is there for this purpose??
RegardsLeave a comment:
-
Thank you for your interest.
I have just created MFC application, which on running produces a form. It has a menu bar "Help". Clicking on this gives default "About Dialog box". Instead of this I want to display any '.doc' or similar file when "Help" menu is clicked.
Not a major code is developed till date but I just want to link the file. Same way i want to read/edit the files (as they are in the working...Leave a comment:
-
File opening
Hi.
I am developing a small code in VC++. I have created a GUI where I want to open a file (*.doc or any other I/P or O/P file) with a button click,i.e., when a button is clicked while running specific file should get opened. If it can be achieved through Menu bar that is also OK. Somebody Please help me.
Thank you
No activity results to display
Show More
Leave a comment: