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. Problems with ShellExecute

Problems with ShellExecute

Scheduled Pinned Locked Moved C / C++ / MFC
c++linuxhelpquestionworkspace
3 Posts 2 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.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    Dear MFC Gurus! My brains don't want to work. I have no ideas. I'm writting simple MFC-based application. ShellExecute doesn't work in my application (in other words, when clicking the static control, MSIE doesn't start): UINT err=(UINT)::ShellExecute(NULL,_T("open"),_T(WEBSITE),_T(""),_T("c:\\"), SW_SHOWNORMAL); This returns "SE_ERR_ACCESSDENIED". Why? By the way, I have another project in the _same_ workspace where it works fine. Moreover, I used this scheme always but today it doesn't work! Help! Urgent! Yours sincerely, Alex Bash

    D 1 Reply Last reply
    0
    • B Bash

      Dear MFC Gurus! My brains don't want to work. I have no ideas. I'm writting simple MFC-based application. ShellExecute doesn't work in my application (in other words, when clicking the static control, MSIE doesn't start): UINT err=(UINT)::ShellExecute(NULL,_T("open"),_T(WEBSITE),_T(""),_T("c:\\"), SW_SHOWNORMAL); This returns "SE_ERR_ACCESSDENIED". Why? By the way, I have another project in the _same_ workspace where it works fine. Moreover, I used this scheme always but today it doesn't work! Help! Urgent! Yours sincerely, Alex Bash

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

      What is the value of WEBSITE at the time of this call? There is nothing wrong with the code as it works for me.


      A rich person is not the one who has the most, but the one that needs the least.

      B 1 Reply Last reply
      0
      • D David Crow

        What is the value of WEBSITE at the time of this call? There is nothing wrong with the code as it works for me.


        A rich person is not the one who has the most, but the one that needs the least.

        B Offline
        B Offline
        Bash
        wrote on last edited by
        #3

        Sorry, #define WEBSITE "http://www.microsoft.com" The problem is still not resolved. I'm in shock. Any ideas? Yours sincerely, Alex Bash

        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