CWinApp::ProcessShellCommand

BOOL ProcessShellCommand (CCommandLineInfoamp;rCmdInfo );(&A)

반환 값

셸 명령이 성공적으로 처리 하는 경우 0이 아닌. 0 이면 InitInstance 에서 FALSE 반환。

매개 변수

rCmdInfo

CCommandLineInfo 개체에 대 한 참조。

주의

InitInstance 변수와 rCmdInfo에 의해 식별 되는 CCommandLineInfo 개체에서 전달 된 지정 된 작업 수행을 적용 하려면이 멤버 함수를 호출할。

Appwizard를 사용 하 여 새 MFC 프로젝트를 시작할 때 AppWizard CCommandLineInfo의 로컬 인스턴스를 만들고 ProcessShellCommand 및 ParseCommandLine InitInstance 멤버 함수를 호출 합니다. 커맨드 라인 아래에서 설명 하는 경로 다음과 같습니다.:

  1. InitInstance에서 만든 후 CCommandLineInfo 개체 ParseCommandLine 전달。

  2. ParseCommandLine 다음 호출 CCommandLineInfo::ParseParam 반복, 한 번 각 매개 변수에 대해。

  3. ParseParam 다음 ProcessShellCommand 에 전달 된 CCommandLineInfo 개체를 채웁니다.

  4. 명령줄 인수 및 플래그를 처리 하는 ProcessShellCommand。

CCommandLineInfo::m_nShellCommand에 의해 식별 되는 CCommandLineInfo 개체의 데이터 멤버는 CCommandLineInfo 클래스 내에서 정의 된 다음 열거 형식。

enum {
 nbsp; FileNew,
 ? FileOpen,
 ? FilePrint,
 ? FilePrintTo,
 ? FileDDE,
}(&N)

이러한 값 각각의 간략 한 설명에 대 한 다음 웹 사이트를 참조 하십시오. CCommandLineInfo::m_nShellCommand。

CWinApp 개요 |nbsp; 클래스 멤버 (ko) | 계층 구조 차트(&N)

참고 항목nbsp;CWinApp::ParseCommandLine, CCommandLineInfo, CCommandLineInfo::ParseParam, CCommandLineInfo::m_nShellCommand(&N)

Index