User Profile

Collapse

Profile Sidebar

Collapse
milindiit
milindiit
Last Activity: Apr 18 '08, 07:20 AM
Joined: Mar 31 '08
Location: Mumbai, India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • milindiit
    replied to File opening
    in C
    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...
    See more | Go to post
    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.

    Leave a comment:


  • milindiit
    replied to File opening
    in C
    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?...
    See more | Go to post

    Leave a comment:


  • milindiit
    replied to File opening
    in C
    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??
    Regards
    See more | Go to post

    Leave a comment:


  • milindiit
    replied to File opening
    in C
    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...
    See more | Go to post

    Leave a comment:


  • milindiit
    started a topic File opening
    in C

    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
    See more | Go to post
No activity results to display
Show More
Working...