ShellExecute doesn’t work without extension
Question:
Hi
I’m using ShellExecute to open sharepoint folder using default browser.
This works only on part of the computers. The url I use begins with http but don’t have file extension (for example: http://sharepoint/Sites/Vendor/FolderA).
Does someone know why it doesn’t work only on part of the comptuers?
What can i do to fix it?
i use the following call to ShellExecute:
HINSTANCE ShellRetVal = ShellExecute(AfxGetMainWnd()->GetSafeHwnd(), NULL,url, NULL, AfxGetApp()->m_pszAppName, SW_MAXIMIZE);
When there is an error, ShellExecute returns SE_ERR_NOASSOC (31)
Solution:
>> Start->Run doesn’t work as well.
This is exactly what I thought. The program is OK, but there is no association between http address and Internet Explorer. I don’t know how to restore this association. Ask this in one of OS areas, for example: http://www.experts-exchange.com/Operating_Systems/WinXP/
You need to ask how to restore association – describe the problem when user types URL in the Run window and IE is not opened. Having the answer instruct user to do this and your program will be OK.













Comments (0)
Trackbacks - Pingbacks (0)
Leave a Reply