CWinApp::ParseCommandLine

void ParseCommandLine (CCommandLineInfoamp; rCmdInfo );(&A)

パラメーター

rCmdInfo

CCommandLineInfoへの参照を オブジェクト。

解説

コマンドラインを解析し、パラメーターを 1 つずつ、tonbsp を送信するにはこのメンバー関数を呼び出します。CCommandLineInfo::ParseParam(&N)。

AppWizard を使用して、新しい MFC プロジェクトを開始するときは、AppWizard CCommandLineInfoのローカル インスタンスを作成し、 InitInstanceメンバー関数を呼び出してProcessShellCommandParseCommandLine 。以下のルート コマンド ・ ラインを次します。:

  1. InitInstanceで作成される、 CCommandLineInfoオブジェクトはParseCommandLineに渡される。

  2. ParseCommandLine [ CCommandLineInfo::ParseParam繰り返し、一度パラメーターごとに呼び出します。

  3. ParseParam ProcessShellCommandに渡される、 CCommandLineInfoオブジェクトを塗りつぶす。

  4. ProcessShellCommandフラグとコマンドライン引数を処理します。

ParseCommandLine直接必要に応じて呼び出すことができることに注意してください。

コマンド ライン フラグの説明についてを参照してくださいCCommandLineInfo::m_nShellCommand

CWinApp の概要|nbsp;クラス メンバー |階層図(&N)

参照特価;CCommandLineInfoCWinApp::InitInstanceCCommandLineInfo::ParseParamCWinApp::ProcessShellCommandCCommandLineInfo::m_nShellCommand(&N)

Index