CWinApp::ParseCommandLine

ParseCommandLine 무효 (CCommandLineInfoamp; rCmdInfo );(&A)

매개 변수

rCmdInfo

CCommandLineInfo에 대 한 참조를 개체。

주의

명령줄을 구문 분석 하 고 tonbsp; 한 번에 하나의 매개 변수를 보낼이 멤버 함수를 호출 CCommandLineInfo::ParseParam(&N)。

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

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

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

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

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

필요에 따라 직접 ParseCommandLine 를 호출할 수 있습니다 note。

에 대 한 명령줄 플래그 설명은 다음 웹 사이트를 참조 하십시오. CCommandLineInfo::m_nShellCommand。

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

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

Index