Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Open string in edit control with another software

Open string in edit control with another software

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Max
    wrote on last edited by
    #1

    I want to show the data in edit control with Notepad or Microsoft Excel. Anybody know how to write the code

    A S H 3 Replies Last reply
    0
    • M Max

      I want to show the data in edit control with Notepad or Microsoft Excel. Anybody know how to write the code

      A Offline
      A Offline
      Akt_4_U
      wrote on last edited by
      #2

      Write the data in the Edit control to a file. Open the file with Notepad using WinExec.

      Akkott

      M 1 Reply Last reply
      0
      • A Akt_4_U

        Write the data in the Edit control to a file. Open the file with Notepad using WinExec.

        Akkott

        M Offline
        M Offline
        Max
        wrote on last edited by
        #3

        ::ShellExecute(NULL,NULL,_T("Test.txt"),NULL,_T("C:\\MyProjects"),SW_SHOW); From above The system will run Test.txt in C:\MyProject. Normally it use Notepad. If I want to use Microsoft Word or Excel to run this file. How to write the code?

        D 1 Reply Last reply
        0
        • M Max

          I want to show the data in edit control with Notepad or Microsoft Excel. Anybody know how to write the code

          S Offline
          S Offline
          sujtha
          wrote on last edited by
          #4

          ShellExecute(handle, "notepad", filename, NULL, NULL, SW_SHOWNORMAL); ShellExecute(handle, "excel", filename, NULL, NULL, SW_SHOWNORMAL);

          1 Reply Last reply
          0
          • M Max

            I want to show the data in edit control with Notepad or Microsoft Excel. Anybody know how to write the code

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Do you want insert datas to editbox on Notepad?

            _**


            **_

            WhiteSky


            1 Reply Last reply
            0
            • M Max

              ::ShellExecute(NULL,NULL,_T("Test.txt"),NULL,_T("C:\\MyProjects"),SW_SHOW); From above The system will run Test.txt in C:\MyProject. Normally it use Notepad. If I want to use Microsoft Word or Excel to run this file. How to write the code?

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Max++ wrote:

              If I want to use Microsoft Word or Excel to run this file. How to write the code?

              You can still use ShellExecute(), but you'll need to explicitly indicate that word.exe or excel.exe is to be used.


              "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

              "Judge not by the eye but by the heart." - Native American Proverb

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups