Return to Snippet

Revision: 27694
at June 22, 2010 12:09 by jimfred


Updated Code
CString strBrowser;
DWORD size = 1024;
AssocQueryString(0, ASSOCSTR_EXECUTABLE, ".htm", "Open", strBrowser.GetBufferSetLength(size), &size);
strBrowser.ReleaseBuffer();

Revision: 27693
at June 21, 2010 14:09 by jimfred


Initial Code
CString strBrowser;
DWORD size = 1024;
AssocQueryString(0, ASSOCSTR_EXECUTABLE, ".htm", "Open", strBrowser.GetBufferSetLength(size), &size);

Initial URL

                                

Initial Description

                                

Initial Title
MFC, Get default browser using AssocQueryString

Initial Tags

                                

Initial Language
C++