Problems with ShellExecute
-
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
-
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
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.
-
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.
Sorry, #define WEBSITE "http://www.microsoft.com" The problem is still not resolved. I'm in shock. Any ideas? Yours sincerely, Alex Bash