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. How to execute an external application

How to execute an external application

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 3 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.
  • W Offline
    W Offline
    work_to_live
    wrote on last edited by
    #1

    I want to open a pdf file from within a windows application. It doesn't have to open inside my application. I've been looking around for an hour now, and though I better get some help... Thanks.

    C L 2 Replies Last reply
    0
    • W work_to_live

      I want to open a pdf file from within a windows application. It doesn't have to open inside my application. I've been looking around for an hour now, and though I better get some help... Thanks.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      try ShellExecute -c


      Image tools: ThumbNailer, Bobber, TIFFAssembler

      W 1 Reply Last reply
      0
      • W work_to_live

        I want to open a pdf file from within a windows application. It doesn't have to open inside my application. I've been looking around for an hour now, and though I better get some help... Thanks.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Till yet I've never used that but I think you should have a look at the command execlp Hope this helps

        1 Reply Last reply
        0
        • C Chris Losinger

          try ShellExecute -c


          Image tools: ThumbNailer, Bobber, TIFFAssembler

          W Offline
          W Offline
          work_to_live
          wrote on last edited by
          #4

          Thanks, that did the job!

          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