Click here to Skip to main content
15,867,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Log Control Pin
Debojyoti Majumder25-Apr-11 3:03
Debojyoti Majumder25-Apr-11 3:03 
AnswerRe: Log Control Pin
David 'dex' Schwartz26-Apr-11 18:15
David 'dex' Schwartz26-Apr-11 18:15 
QuestionQApplication(argc, argv) Pin
Abder_Rahman24-Apr-11 23:07
Abder_Rahman24-Apr-11 23:07 
AnswerRe: QApplication(argc, argv) Pin
Richard MacCutchan24-Apr-11 23:15
mveRichard MacCutchan24-Apr-11 23:15 
GeneralRe: QApplication(argc, argv) Pin
Abder_Rahman24-Apr-11 23:20
Abder_Rahman24-Apr-11 23:20 
GeneralRe: QApplication(argc, argv) Pin
barneyman24-Apr-11 23:42
barneyman24-Apr-11 23:42 
GeneralRe: QApplication(argc, argv) Pin
Richard MacCutchan25-Apr-11 1:32
mveRichard MacCutchan25-Apr-11 1:32 
AnswerRe: QApplication(argc, argv) Pin
vishalgpt25-Apr-11 0:02
vishalgpt25-Apr-11 0:02 
To check the number of argument passed.

for example
if (argc != 3)
{
printf("usage: myapp <srcfile> <dstfile>");

// Here 0 = myapp
// 1 = srcfile
// 2 = dstfile
//Total 3 Arguments entered
return FALSE;
}



pszSrcFileName = argv[argc-2]; // Src is second to last argument
pszDstFileName = argv[argc-1]; // Dst is the last argument


by default no arguments are passed. Unless you have created a program that read a Command Line Arguments.
Regards,
Vishal

AnswerRe: QApplication(argc, argv) Pin
Maximilien25-Apr-11 0:48
Maximilien25-Apr-11 0:48 
QuestionFixed row in list control Pin
MKC00223-Apr-11 20:49
MKC00223-Apr-11 20:49 
AnswerRe: Fixed row in list control Pin
«_Superman_»24-Apr-11 1:02
professional«_Superman_»24-Apr-11 1:02 
AnswerRe: Fixed row in list control Pin
ShilpiP24-Apr-11 19:30
ShilpiP24-Apr-11 19:30 
QuestionACL Pin
vishalgpt23-Apr-11 19:23
vishalgpt23-Apr-11 19:23 
AnswerRe: ACL Pin
Hans Dietrich23-Apr-11 21:57
mentorHans Dietrich23-Apr-11 21:57 
GeneralRe: ACL Pin
vishalgpt23-Apr-11 23:24
vishalgpt23-Apr-11 23:24 
Questionwindows explorer on c++ using functions winapi Pin
Romanchicheck22-Apr-11 8:35
Romanchicheck22-Apr-11 8:35 
AnswerRe: windows explorer on c++ using functions winapi Pin
Code-o-mat22-Apr-11 9:51
Code-o-mat22-Apr-11 9:51 
GeneralRe: windows explorer on c++ using functions winapi Pin
Romanchicheck22-Apr-11 10:02
Romanchicheck22-Apr-11 10:02 
GeneralRe: windows explorer on c++ using functions winapi Pin
Code-o-mat22-Apr-11 10:15
Code-o-mat22-Apr-11 10:15 
GeneralRe: windows explorer on c++ using functions winapi Pin
HimanshuJoshi22-Apr-11 10:16
HimanshuJoshi22-Apr-11 10:16 
AnswerRe: windows explorer on c++ using functions winapi Pin
HimanshuJoshi22-Apr-11 10:17
HimanshuJoshi22-Apr-11 10:17 
QuestionCopying and executing code of a function Pin
Bashilein22-Apr-11 1:40
Bashilein22-Apr-11 1:40 
AnswerRe: Copying and executing code of a function [modified] Pin
Code-o-mat22-Apr-11 3:20
Code-o-mat22-Apr-11 3:20 
AnswerRe: Copying and executing code of a function Pin
barneyman22-Apr-11 3:20
barneyman22-Apr-11 3:20 
GeneralRe: Copying and executing code of a function Pin
Bashilein22-Apr-11 6:40
Bashilein22-Apr-11 6:40 

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.