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. Question

Question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
6 Posts 4 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.
  • R Offline
    R Offline
    rfixxxer
    wrote on last edited by
    #1

    Hello,can anyone help please(my second for today), How can i open a file(for exemple d:\Temp\log.txt) through pushing a button in my MFC project? Thank you all! Johnny

    J M D 3 Replies Last reply
    0
    • R rfixxxer

      Hello,can anyone help please(my second for today), How can i open a file(for exemple d:\Temp\log.txt) through pushing a button in my MFC project? Thank you all! Johnny

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Call ShellExecute with operation "open" Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      1 Reply Last reply
      0
      • R rfixxxer

        Hello,can anyone help please(my second for today), How can i open a file(for exemple d:\Temp\log.txt) through pushing a button in my MFC project? Thank you all! Johnny

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        Have a read of ShellExecute on MSDN. or have a read of this article[^] Michael CP Blog [^]

        R 1 Reply Last reply
        0
        • R rfixxxer

          Hello,can anyone help please(my second for today), How can i open a file(for exemple d:\Temp\log.txt) through pushing a button in my MFC project? Thank you all! Johnny

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

          Are you wanting to know how to: 1) respond to a button click 2) open the file using its associated application 3) open the file within your application


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          R 1 Reply Last reply
          0
          • M Michael P Butler

            Have a read of ShellExecute on MSDN. or have a read of this article[^] Michael CP Blog [^]

            R Offline
            R Offline
            rfixxxer
            wrote on last edited by
            #5

            Thank you very much!!! It works! Johnny

            1 Reply Last reply
            0
            • D David Crow

              Are you wanting to know how to: 1) respond to a button click 2) open the file using its associated application 3) open the file within your application


              "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

              R Offline
              R Offline
              rfixxxer
              wrote on last edited by
              #6

              thank you! but i already got help thanks Johnny

              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