What to do when ShellExecute fails?
-
I am trying to execute soem arbitrary file using code below. SHELLEXECUTEINFO si; ZeroMemory(&si,sizeof(si)); si.cbSize = sizeof(si); si.hwnd = NULL; si.lpVerb = "Open"; si.nShow = SW_SHOW; si.lpFile = szFileName; si.lpParameters = NULL; si.lpDirectory = m_strCurDir; si.fMask = SEE_MASK_FLAG_NO_UI; ShellExecuteEx(&si); My problem is that for ".dsw" files (Visual C++ project files) this function fails (with "no association" error). What can I do to successfully execute even this kind of files? Does anyone has a code for that (registry digging?) ? Thanks in advance. Miroslav Rajcic
-
I am trying to execute soem arbitrary file using code below. SHELLEXECUTEINFO si; ZeroMemory(&si,sizeof(si)); si.cbSize = sizeof(si); si.hwnd = NULL; si.lpVerb = "Open"; si.nShow = SW_SHOW; si.lpFile = szFileName; si.lpParameters = NULL; si.lpDirectory = m_strCurDir; si.fMask = SEE_MASK_FLAG_NO_UI; ShellExecuteEx(&si); My problem is that for ".dsw" files (Visual C++ project files) this function fails (with "no association" error). What can I do to successfully execute even this kind of files? Does anyone has a code for that (registry digging?) ? Thanks in advance. Miroslav Rajcic
What happens when you manually double click on a dsw file? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
What happens when you manually double click on a dsw file? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
Nothing, I just get error code "no association" from API Miroslav Rajcic
-
What happens when you manually double click on a dsw file? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
look at the console commands assoc and ftype . Your shell associations for .dsw are screwed. Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
Nothing, I just get error code "no association" from API Miroslav Rajcic
I think somehow your dsw association got removed. You'll need to re-associate it to Visual Studio [msdev]. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
look at the console commands assoc and ftype . Your shell associations for .dsw are screwed. Sorry to dissapoint you all with my lack of a witty or poignant signature.
Thanks. I'll look into that. Miroslav Rajcic
-
I am trying to execute soem arbitrary file using code below. SHELLEXECUTEINFO si; ZeroMemory(&si,sizeof(si)); si.cbSize = sizeof(si); si.hwnd = NULL; si.lpVerb = "Open"; si.nShow = SW_SHOW; si.lpFile = szFileName; si.lpParameters = NULL; si.lpDirectory = m_strCurDir; si.fMask = SEE_MASK_FLAG_NO_UI; ShellExecuteEx(&si); My problem is that for ".dsw" files (Visual C++ project files) this function fails (with "no association" error). What can I do to successfully execute even this kind of files? Does anyone has a code for that (registry digging?) ? Thanks in advance. Miroslav Rajcic
> My problem is that for ".dsw" files (Visual C++ project files) > this function fails (with "no association" error). This is a shot in the dark, but do you get the same results when you use ShellExecute(...) instead? I have noticed differences in the behavior of these functions for certain operations. Peace! -=- James.