File I/O in VC 6.0 More options

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sabyasachib
    New Member
    • Nov 2006
    • 2

    File I/O in VC 6.0 More options

    Hi,

    I want to open a MS Word file and want to read the file and display the file contain through VC 6.0

    I want to know how it is possible.


    Thanks & Regards,
    Sabyasachi Banerjee
  • sivadhas2006
    New Member
    • Nov 2006
    • 142

    #2
    Hi Sabyasachi,

    It is possible by adding the component rich text box to your visual c++ project.

    Regards,
    M.Sivadhas.

    Comment

    • sabyasachib
      New Member
      • Nov 2006
      • 2

      #3
      Hi,

      How can I add the component rich text box in visual c++ project.

      Please inform me.

      Regards,
      Sabyasachi.

      Comment

      • sivadhas2006
        New Member
        • Nov 2006
        • 142

        #4
        Hi Sabyasachi,

        1. Create a MFC Dialog Based Application.

        2. Select Components and Controls from the menu Projcet -> Add To Project

        3. Open Registered ActiveX Controls folder and select "Microsoft Rich Textbox Control 6.0"

        4. Click the insert button and Click Ok and Once again Ok.

        5. Now the rich text box control will be added to the control toolbox.

        6. Drag and drop the rich text box control from the control toolbox to the dialog box.

        7. Create the control member variable "m_rtbTest" with the help of the class wizard for the IDC_RICHTEXTCTR L1.

        Use the following method to load the rich text formated file.

        Code:
        #define FILE_PATH "c:\\Sivadhas.rtf"
        #define RICH_TEXT_FILE 0
        #define PLAIN_TEXT_FILE 1
        m_rtbTest.LoadFile(FILE_PATH, RICH_TEXT_FILE);
        If you faced any problem, please inform to me.
        All the best...

        Regards,
        M.Sivadhas.

        Comment

        Working...