Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Where is the root directory ? Pin
Ryan Binns24-Jun-03 23:58
Ryan Binns24-Jun-03 23:58 
GeneralRe: Where is the root directory ? Pin
rohit.dhamija25-Jun-03 1:48
rohit.dhamija25-Jun-03 1:48 
QuestionHow to let user choose a directory? Pin
Raphael Kindt24-Jun-03 23:29
Raphael Kindt24-Jun-03 23:29 
AnswerRe: How to let user choose a directory? Pin
Joan M24-Jun-03 23:35
professionalJoan M24-Jun-03 23:35 
GeneralRe: How to let user choose a directory? Pin
Raphael Kindt24-Jun-03 23:47
Raphael Kindt24-Jun-03 23:47 
GeneralRe: How to let user choose a directory? Pin
Joan M25-Jun-03 0:01
professionalJoan M25-Jun-03 0:01 
AnswerRe: How to let user choose a directory? Pin
David Crow25-Jun-03 3:05
David Crow25-Jun-03 3:05 
AnswerRe: How to let user choose a directory? Pin
basementman25-Jun-03 4:32
basementman25-Jun-03 4:32 
The following sample browses for a directory:

void BrowseForDir()<br />
{<br />
  char caPathName[MAX_PATH];<br />
<br />
  caPathName[0] = 0;<br />
<br />
  GetDlgItemText(IDC_MYCTRL_TO_BACKFILL,caPathName,MAX_PATH);<br />
<br />
  BROWSEINFO sBI;<br />
  memset(&sBI,0,sizeof(BROWSEINFO));<br />
<br />
  sBI.hwndOwner = m_hWnd;<br />
  sBI.pidlRoot = NULL;<br />
  sBI.pszDisplayName = caPathName;<br />
  sBI.lpszTitle = "Select the folder that contains the desired files";<br />
  sBI.ulFlags = BIF_RETURNONLYFSDIRS;<br />
  sBI.lpfn = NULL;<br />
<br />
  LPITEMIDLIST pidl = SHBrowseForFolder(&sBI);<br />
  if (pidl)<br />
    {<br />
      SHGetPathFromIDList(pidl,caPathName);<br />
      SetDlgItemText(IDC_MYCTRL_TO_BACKFILL,caPathName);<br />
      GotoDlgCtrl(GetDlgItem(IDC_MYCTRL_TO_BACKFILL));<br />
    }<br />
}


 onwards and upwards... 
QuestionHow to insert a row in FlexGrid? Pin
Radha Nair24-Jun-03 22:57
Radha Nair24-Jun-03 22:57 
AnswerRe: How to insert a row in FlexGrid? Pin
Toni7825-Jun-03 0:08
Toni7825-Jun-03 0:08 
GeneralUsing printer device Pin
Ahmed Galal24-Jun-03 22:54
Ahmed Galal24-Jun-03 22:54 
Questionstl set bug ? Pin
Brian van der Beek24-Jun-03 21:35
Brian van der Beek24-Jun-03 21:35 
AnswerRe: stl set bug ? Pin
ankea17-Nov-15 0:16
ankea17-Nov-15 0:16 
Generalvb constants in vc Pin
mooze24-Jun-03 21:15
mooze24-Jun-03 21:15 
GeneralRace conditions Pin
Toni7824-Jun-03 20:35
Toni7824-Jun-03 20:35 
GeneralCOM DLL registration problem Pin
vikramj24-Jun-03 20:15
vikramj24-Jun-03 20:15 
GeneralRe: COM DLL registration problem Pin
Kannan Kalyanaraman24-Jun-03 20:49
Kannan Kalyanaraman24-Jun-03 20:49 
QuestionHow to check who is currently logged on (Win2K/XP) Pin
Hashim Saleem24-Jun-03 19:52
Hashim Saleem24-Jun-03 19:52 
AnswerRe: How to check who is currently logged on (Win2K/XP) Pin
Ryan Binns24-Jun-03 20:04
Ryan Binns24-Jun-03 20:04 
Questionhow to free library by dll self Pin
gucy24-Jun-03 17:52
gucy24-Jun-03 17:52 
AnswerRe: how to free library by dll self Pin
David Crow25-Jun-03 3:09
David Crow25-Jun-03 3:09 
QuestionApplication that handles 200 000+ Lines? Pin
Steve The Plant24-Jun-03 16:01
Steve The Plant24-Jun-03 16:01 
AnswerRe: Application that handles 200 000+ Lines? Pin
J. Dunlap24-Jun-03 16:14
J. Dunlap24-Jun-03 16:14 
GeneralRe: Application that handles 200 000+ Lines? Pin
Steve The Plant24-Jun-03 16:21
Steve The Plant24-Jun-03 16:21 
GeneralRe: Application that handles 200 000+ Lines? Pin
David Crow25-Jun-03 3:14
David Crow25-Jun-03 3:14 

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.