Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIID_IContextMenu: Open With in Windows ME/2000/XP Pin
Ana Lucia11-Jan-02 0:23
Ana Lucia11-Jan-02 0:23 
GeneralRe: IID_IContextMenu: Open With in Windows ME/2000/XP Pin
Michael Dunn11-Jan-02 7:40
sitebuilderMichael Dunn11-Jan-02 7:40 
GeneralRe: IID_IContextMenu: Open With in Windows ME/2000/XP Pin
Ana Lucia11-Jan-02 7:57
Ana Lucia11-Jan-02 7:57 
GeneralGetting the list of printer.. Pin
Neha11-Jan-02 0:17
Neha11-Jan-02 0:17 
GeneralSplitter Window how avoid call RecalcLayout Pin
Braulio Dez11-Jan-02 0:16
Braulio Dez11-Jan-02 0:16 
GeneralRe: Splitter Window how avoid call RecalcLayout Pin
Jon Hulatt11-Jan-02 0:22
Jon Hulatt11-Jan-02 0:22 
GeneralRe: Splitter Window how avoid call RecalcLayout Pin
Braulio Dez11-Jan-02 0:26
Braulio Dez11-Jan-02 0:26 
QuestionWhat to do when ShellExecute fails? Pin
Miroslav Rajcic10-Jan-02 23:04
Miroslav Rajcic10-Jan-02 23:04 
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
AnswerRe: What to do when ShellExecute fails? Pin
Nish Nishant10-Jan-02 23:52
sitebuilderNish Nishant10-Jan-02 23:52 
GeneralRe: What to do when ShellExecute fails? Pin
Miroslav Rajcic11-Jan-02 0:15
Miroslav Rajcic11-Jan-02 0:15 
GeneralRe: What to do when ShellExecute fails? Pin
Nish Nishant11-Jan-02 0:21
sitebuilderNish Nishant11-Jan-02 0:21 
GeneralRe: What to do when ShellExecute fails? Pin
Jon Hulatt11-Jan-02 0:17
Jon Hulatt11-Jan-02 0:17 
GeneralRe: What to do when ShellExecute fails? Pin
Miroslav Rajcic11-Jan-02 0:26
Miroslav Rajcic11-Jan-02 0:26 
AnswerRe: What to do when ShellExecute fails? Pin
James R. Twine11-Jan-02 6:04
James R. Twine11-Jan-02 6:04 
GeneralProgramatically saving the contents of a Package Pin
10-Jan-02 22:47
suss10-Jan-02 22:47 
Generalre: wierd debug / release issue... Pin
l a u r e n10-Jan-02 22:38
l a u r e n10-Jan-02 22:38 
GeneralOne more time about mouse cursor.... Pin
10-Jan-02 21:48
suss10-Jan-02 21:48 
GeneralRe: One more time about mouse cursor.... Pin
Nish Nishant10-Jan-02 22:06
sitebuilderNish Nishant10-Jan-02 22:06 
QuestionHow to get a CWnd-pointer from hWnd?? Pin
Mr.Freeze10-Jan-02 21:05
Mr.Freeze10-Jan-02 21:05 
AnswerRe: How to get a CWnd-pointer from hWnd?? Pin
Prem Kumar10-Jan-02 21:12
Prem Kumar10-Jan-02 21:12 
GeneralRe: How to get a CWnd-pointer from hWnd?? Pin
Mr.Freeze10-Jan-02 21:17
Mr.Freeze10-Jan-02 21:17 
GeneralRe: How to get a CWnd-pointer from hWnd?? Pin
Nish Nishant10-Jan-02 22:03
sitebuilderNish Nishant10-Jan-02 22:03 
GeneralVeryUrgent Pin
10-Jan-02 19:16
suss10-Jan-02 19:16 
GeneralRe: VeryUrgent Pin
Nish Nishant10-Jan-02 19:36
sitebuilderNish Nishant10-Jan-02 19:36 
GeneralRe: VeryUrgent Pin
10-Jan-02 19:44
suss10-Jan-02 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.