Click here to Skip to main content
15,797,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: This file has been modified outside of the source editor.Do you want to reloead it" Pin
KarstenK19-Aug-08 21:30
mveKarstenK19-Aug-08 21:30 
GeneralRe: This file has been modified outside of the source editor.Do you want to reloead it" Pin
Dhiraj kumar Saini19-Aug-08 22:44
Dhiraj kumar Saini19-Aug-08 22:44 
GeneralRe: This file has been modified outside of the source editor.Do you want to reloead it" Pin
David Crow20-Aug-08 4:47
David Crow20-Aug-08 4:47 
QuestionHow can get all files from selected directory? Pin
Le@rner19-Aug-08 20:37
Le@rner19-Aug-08 20:37 
AnswerRe: How can get all files from selected directory? Pin
_AnsHUMAN_ 19-Aug-08 20:42
_AnsHUMAN_ 19-Aug-08 20:42 
AnswerRe: How can get all files from selected directory? Pin
Hamid_RT19-Aug-08 22:25
Hamid_RT19-Aug-08 22:25 
GeneralRe: How can get all files from selected directory? Pin
_AnsHUMAN_ 19-Aug-08 22:53
_AnsHUMAN_ 19-Aug-08 22:53 
AnswerRe: How can get all files from selected directory? Pin
Dan19-Aug-08 23:30
Dan19-Aug-08 23:30 
This function will return the directory contents in a vector of strings.

std::vector< std::wstring > GetDirectoryList( const std::wstring &strDirectory )
{
     std::vector< std::wstring > contents;
     WIN32_FIND_DATA data;
     HANDLE hFind = FindFirstFile( (strDirectory + L"\\*").c_str() , &data);

     if ( hFind != INVALID_HANDLE_VALUE ) {
          do {
               contents.push_back( data.cFileName );
          } while ( FindNextFile( hFind , &data ) != 0 );
          FindClose( hFind );
     }
     return contents;
}

QuestionWM_INITIALUPDATE Handler takes very long time Pin
ptr_Electron19-Aug-08 20:02
ptr_Electron19-Aug-08 20:02 
AnswerRe: WM_INITIALUPDATE Handler takes very long time Pin
KarstenK19-Aug-08 21:26
mveKarstenK19-Aug-08 21:26 
AnswerRe: WM_INITIALUPDATE Handler takes very long time Pin
Mark Salsbery20-Aug-08 7:46
Mark Salsbery20-Aug-08 7:46 
Questionbutton to display open file dailog Pin
vinay_K19-Aug-08 19:50
vinay_K19-Aug-08 19:50 
AnswerRe: button to display open file dailog Pin
ptr_Electron19-Aug-08 20:18
ptr_Electron19-Aug-08 20:18 
AnswerRe: button to display open file dailog Pin
Nibu babu thomas19-Aug-08 20:21
Nibu babu thomas19-Aug-08 20:21 
AnswerRe: button to display open file dailog Pin
Hamid_RT19-Aug-08 22:27
Hamid_RT19-Aug-08 22:27 
GeneralRe: button to display open file dailog Pin
David Crow20-Aug-08 4:51
David Crow20-Aug-08 4:51 
GeneralRe: button to display open file dailog Pin
Hamid_RT20-Aug-08 5:50
Hamid_RT20-Aug-08 5:50 
QuestionI am Geting a Problem in GetSafeHwnd() Pin
GangaSungar19-Aug-08 19:47
GangaSungar19-Aug-08 19:47 
AnswerRe: I am Geting a Problem in GetSafeHwnd() Pin
Nibu babu thomas19-Aug-08 20:32
Nibu babu thomas19-Aug-08 20:32 
Questionrun a thread Pin
anilaabc19-Aug-08 19:21
anilaabc19-Aug-08 19:21 
AnswerRe: run a thread Pin
ptr_Electron19-Aug-08 20:13
ptr_Electron19-Aug-08 20:13 
GeneralRe: run a thread Pin
anilaabc19-Aug-08 22:32
anilaabc19-Aug-08 22:32 
AnswerRe: run a thread Pin
Cedric Moonen19-Aug-08 21:48
Cedric Moonen19-Aug-08 21:48 
GeneralRe: run a thread Pin
anilaabc19-Aug-08 23:00
anilaabc19-Aug-08 23:00 
AnswerRe: run a thread Pin
Roger Stoltz19-Aug-08 22:35
Roger Stoltz19-Aug-08 22:35 

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.