Programming - cpueblo.com

MFC Dialog 실행 파일 커멘드 얻기


글쓴이 : 유광희 날짜 : 2002-05-13 (월) 16:42 조회 : 16792
        if ( pApp->m_lpCmdLine[0] != _T('\\0') ) {
               
                CString sCmdLine = pApp->m_lpCmdLine;
                CString sFile;
                int len = sCmdLine.GetLength();
                int count;

                sFile.Empty();
                for ( count=0; count<len; count++ ) {
                        if ( sCmdLine.GetAt(count)!=_T(' ') ) {
                                sFile += sCmdLine.GetAt(count);
                        } else {
                                AddFile(sFile);
                                sFile.Empty();
                        }
                }
                AddFile(sFile);
                UpdateData(FALSE);
        }