Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz14-Feb-07 1:23
Roger Stoltz14-Feb-07 1:23 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 2:03
amitmistry_petlad 14-Feb-07 2:03 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 2:54
amitmistry_petlad 14-Feb-07 2:54 
AnswerRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz14-Feb-07 4:28
Roger Stoltz14-Feb-07 4:28 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 17:05
amitmistry_petlad 14-Feb-07 17:05 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz14-Feb-07 21:10
Roger Stoltz14-Feb-07 21:10 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 21:59
amitmistry_petlad 14-Feb-07 21:59 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz14-Feb-07 22:19
Roger Stoltz14-Feb-07 22:19 
I didn't know you were building without MFC.
No big deal, use ::OutputDebugString() instead, like this:
if( ::GetOpenFileName( &ofn ) )
{
    char* pFilename = ofn.lpstrFile;

    while( *pFilename++ );  // Search for first delimiter (NULL)
    if( !*pFilename )
    {
        // This means that there were two adjacent NULLs found => end of list
        std::string output = ofn.lpstrFile;
        output += "\n";
        ::OutputDebugString( output.c_str() );
    }
    else
    {
        ::OutputDebugString( "Multiple files were selected:\n" );
        while( *pFilename )
        {
            // List the files
            std::string output = ofn.lpstrFile;
            output += "\\";
            output += pFilename;
            output += "\n";
            ::OutputDebugString( output.c_str() );
            
            // Search for next delimiter (NULL)
            while( *pFilename++ );
        }
    }
}



"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 22:54
amitmistry_petlad 14-Feb-07 22:54 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz14-Feb-07 23:27
Roger Stoltz14-Feb-07 23:27 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 14-Feb-07 23:59
amitmistry_petlad 14-Feb-07 23:59 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz15-Feb-07 0:50
Roger Stoltz15-Feb-07 0:50 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 15-Feb-07 1:03
amitmistry_petlad 15-Feb-07 1:03 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz15-Feb-07 2:11
Roger Stoltz15-Feb-07 2:11 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 15-Feb-07 17:23
amitmistry_petlad 15-Feb-07 17:23 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
amitmistry_petlad 15-Feb-07 18:20
amitmistry_petlad 15-Feb-07 18:20 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Roger Stoltz15-Feb-07 21:09
Roger Stoltz15-Feb-07 21:09 
QuestionRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
David Crow14-Feb-07 2:45
David Crow14-Feb-07 2:45 
GeneralRe: OFN_ALLOWMULTISELECT is not working in openfile dialog Pin
Hamid_RT13-Feb-07 21:56
Hamid_RT13-Feb-07 21:56 
QuestionAbout Mfc??? Pin
siddharthsan13-Feb-07 19:24
siddharthsan13-Feb-07 19:24 
AnswerRe: About Mfc??? Pin
Cedric Moonen13-Feb-07 20:09
Cedric Moonen13-Feb-07 20:09 
AnswerRe: About Mfc??? [modified] Pin
toxcct13-Feb-07 22:11
toxcct13-Feb-07 22:11 
GeneralRe: About Mfc??? Pin
David Crow14-Feb-07 2:53
David Crow14-Feb-07 2:53 
GeneralRe: About Mfc??? Pin
toxcct14-Feb-07 2:54
toxcct14-Feb-07 2:54 
AnswerRe: About Mfc??? Pin
Hamid_RT14-Feb-07 7:07
Hamid_RT14-Feb-07 7:07 

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.