1,使用GetCommandLine()函数. CString str = GetCommandLine(); MessageBox(str);. 此种方法得到字符串中包含本程序路径. 2,使用theApp.m_lpCmdLine.
確定! 回上一頁