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. run msword or other registered files such as PDF files & etc.

run msword or other registered files such as PDF files & etc.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
8 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.
  • A Offline
    A Offline
    asdf1753
    wrote on last edited by
    #1

    hi i wanna open a MSWORD DOC such as double click on it but by my application call and pdf too. WinExec(file path) is only for .EXE files and can not be used for .DOC or .PDF ! can u help me ?:confused:

    C 1 Reply Last reply
    0
    • A asdf1753

      hi i wanna open a MSWORD DOC such as double click on it but by my application call and pdf too. WinExec(file path) is only for .EXE files and can not be used for .DOC or .PDF ! can u help me ?:confused:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      ShellExecute will do this for you

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      A 1 Reply Last reply
      0
      • C Christian Graus

        ShellExecute will do this for you

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        A Offline
        A Offline
        asdf1753
        wrote on last edited by
        #3

        tell more about ShellExecute plz

        D H 2 Replies Last reply
        0
        • A asdf1753

          tell more about ShellExecute plz

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

          See here or here.


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

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

          A 1 Reply Last reply
          0
          • D David Crow

            See here or here.


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

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

            A Offline
            A Offline
            asdf1753
            wrote on last edited by
            #5

            tanx a lot :-D:rose:

            A 1 Reply Last reply
            0
            • A asdf1753

              tanx a lot :-D:rose:

              A Offline
              A Offline
              alphaxz
              wrote on last edited by
              #6

              I want to know how to set the first parameter?

              a beginner

              H 1 Reply Last reply
              0
              • A asdf1753

                tell more about ShellExecute plz

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

                ..or see http://www.codeproject.com/system/newbiespawn.asp[^]


                WhiteSky


                1 Reply Last reply
                0
                • A alphaxz

                  I want to know how to set the first parameter?

                  a beginner

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

                  If you want to know about ShellExecute see http://www.codeproject.com/system/newbiespawn.asp[^]


                  WhiteSky


                  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