Posted By

jimfred on 06/21/10


Tagged

mfc


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

khouser


MFC, Get default browser using AssocQueryString


 / Published in: C++
 

  1. CString strBrowser;
  2. DWORD size = 1024;
  3. AssocQueryString(0, ASSOCSTR_EXECUTABLE, ".htm", "Open", strBrowser.GetBufferSetLength(size), &size);
  4. strBrowser.ReleaseBuffer();

Report this snippet  

You need to login to post a comment.