Click here to Skip to main content
15,909,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncode for view video in c++ Pin
Lioz Cohn27-Sep-05 9:03
Lioz Cohn27-Sep-05 9:03 
AnswerRe: code for view video in c++ Pin
Christian Graus27-Sep-05 9:22
protectorChristian Graus27-Sep-05 9:22 
Questionsource code for view video in c++ Pin
Lioz Cohn27-Sep-05 9:01
Lioz Cohn27-Sep-05 9:01 
QuestionLaunching GUI or Console Pin
Prabhu97727-Sep-05 8:02
Prabhu97727-Sep-05 8:02 
AnswerRe: Launching GUI or Console Pin
David Crow27-Sep-05 8:10
David Crow27-Sep-05 8:10 
GeneralRe: Launching GUI or Console Pin
Prabhu97728-Sep-05 7:40
Prabhu97728-Sep-05 7:40 
GeneralRe: Launching GUI or Console Pin
Prabhu97728-Sep-05 7:40
Prabhu97728-Sep-05 7:40 
AnswerRe: Launching GUI or Console Pin
oustar27-Sep-05 21:28
oustar27-Sep-05 21:28 
Just like that:

From MSDN:

CWinApp::m_lpCmdLine See Also
CWinApp Overview | Class Members | Hierarchy ChartCorresponds to the lpCmdLine parameter passed by Windows to WinMain.
LPTSTR m_lpCmdLine;

Remarks
Points to a null-terminated string that specifies the command line for the application. Use m_lpCmdLine to access any command-line arguments the user entered when the application was started. m_lpCmdLine is a public variable of type LPTSTR.

Example
BOOL CMyApp::InitInstance()
{
// ...

if (m_lpCmdLine[0] == _T('\0'))
{
// Create a new (empty) document.
OnFileNew();
}
else
{
// Open a file passed as the first command line parameter.
OpenDocumentFile(m_lpCmdLine);
}

// ...
}

AnswerRe: Launching GUI or Console Pin
AHawk27-Sep-05 22:21
AHawk27-Sep-05 22:21 
QuestionOnNcPaint() to draw Borders Pin
Lea Hayes27-Sep-05 7:12
Lea Hayes27-Sep-05 7:12 
AnswerRe: OnNcPaint() to draw Borders Pin
Shog927-Sep-05 7:45
sitebuilderShog927-Sep-05 7:45 
GeneralRe: OnNcPaint() to draw Borders Pin
Lea Hayes27-Sep-05 9:11
Lea Hayes27-Sep-05 9:11 
QuestionIPControl Adress " CIPAddressCtrl " Pin
REU27-Sep-05 6:58
REU27-Sep-05 6:58 
AnswerRe: IPControl Adress " CIPAddressCtrl " Pin
David Crow27-Sep-05 8:14
David Crow27-Sep-05 8:14 
QuestionCOM question Pin
includeh1027-Sep-05 6:53
includeh1027-Sep-05 6:53 
AnswerRe: COM question Pin
Calc2027-Sep-05 20:15
Calc2027-Sep-05 20:15 
Questioncreate a download software Pin
includeh1027-Sep-05 6:45
includeh1027-Sep-05 6:45 
Questionactive-x control Pin
tejaswi-teja27-Sep-05 5:51
tejaswi-teja27-Sep-05 5:51 
QuestionHow to get the HTTP visit? Pin
rushing27-Sep-05 5:14
rushing27-Sep-05 5:14 
AnswerRe: How to get the HTTP visit? Pin
mikanu27-Sep-05 5:31
mikanu27-Sep-05 5:31 
QuestionUsing a VC7.1 dll in VC6? Pin
John M. Drescher27-Sep-05 4:17
John M. Drescher27-Sep-05 4:17 
AnswerRe: Using a VC7.1 dll in VC6? Pin
John M. Drescher28-Sep-05 4:20
John M. Drescher28-Sep-05 4:20 
QuestionDLL project not producing the .LIB file Pin
mukhopadhyay somenath27-Sep-05 3:42
professionalmukhopadhyay somenath27-Sep-05 3:42 
AnswerRe: DLL project not producing the .LIB file Pin
Ashok Dhamija27-Sep-05 4:15
Ashok Dhamija27-Sep-05 4:15 
QuestionLine spacing in DrawText Pin
Nishad S27-Sep-05 1:22
Nishad S27-Sep-05 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.