Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to check the compiler settting in Visual Studio 2005 Pin
pandit846-Mar-09 0:15
pandit846-Mar-09 0:15 
AnswerRe: How to check the compiler settting in Visual Studio 2005 [modified] Pin
_AnsHUMAN_ 6-Mar-09 0:20
_AnsHUMAN_ 6-Mar-09 0:20 
AnswerRe: How to check the compiler settting in Visual Studio 2005 Pin
Hamid_RT6-Mar-09 0:20
Hamid_RT6-Mar-09 0:20 
QuestionCommand_Line_Parsing using getopt():QNX related. Pin
Raj-Ekoham DwitiyoNasti5-Mar-09 23:50
Raj-Ekoham DwitiyoNasti5-Mar-09 23:50 
AnswerRe: Command_Line_Parsing using getopt():QNX related. Pin
CPallini6-Mar-09 0:19
mveCPallini6-Mar-09 0:19 
GeneralRe: Command_Line_Parsing using getopt():QNX related. Pin
Raj-Ekoham DwitiyoNasti6-Mar-09 0:30
Raj-Ekoham DwitiyoNasti6-Mar-09 0:30 
QuestionRe: Command_Line_Parsing using getopt():QNX related. Pin
CPallini6-Mar-09 0:34
mveCPallini6-Mar-09 0:34 
AnswerRe: Command_Line_Parsing using getopt():QNX related. Pin
Raj-Ekoham DwitiyoNasti6-Mar-09 1:34
Raj-Ekoham DwitiyoNasti6-Mar-09 1:34 
if I am to Parse a Command line of type:
MyApplication [-v] [-i [filename] | -c [filename] [(-s e|c|v ) | ( -m c|V|v num_passes ) | (-r read:write ratio number_of cycles ) | -id ] [ -d devicenumber] [-o filename]
I m parsing it like:
int main(int argc,char* argv[])
{
char *options,*value;
while(int Opt = getopt(argc,argv,"sBig Grin | :-D ::v:")!=-1)
{
switch(Opt)
{
case 'v':
//Do Something
break;
case 'm':
options = optarg;
while(*options != '\0')
{
switch(getsubopt(&options,&myopts,&value))
{
case 'r' :
cout<<optarg<<endl;
break;
case 'p' :
cout<<optarg<<endl;
break;
}
++optind;
}
break;
}
}
}
then suppose I give the command Like:
My Application -m v 5
Then I should Be able to retrieve 'v' Value and the value 5(Please refer to Comand Line format above).
Thanks agai for ur quick reply.

Purusottam Mishra
Systems Executive

GeneralRe: Command_Line_Parsing using getopt():QNX related. Pin
CPallini6-Mar-09 2:08
mveCPallini6-Mar-09 2:08 
GeneralRe: Command_Line_Parsing using getopt():QNX related. Pin
Raj-Ekoham DwitiyoNasti6-Mar-09 3:04
Raj-Ekoham DwitiyoNasti6-Mar-09 3:04 
GeneralRe: Command_Line_Parsing using getopt():QNX related. Pin
CPallini6-Mar-09 7:41
mveCPallini6-Mar-09 7:41 
QuestionSimple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A5-Mar-09 23:23
B_U_A5-Mar-09 23:23 
AnswerRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
«_Superman_»6-Mar-09 1:01
professional«_Superman_»6-Mar-09 1:01 
AnswerRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
Nishad S6-Mar-09 2:19
Nishad S6-Mar-09 2:19 
QuestionRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A6-Mar-09 9:21
B_U_A6-Mar-09 9:21 
QuestionRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A6-Mar-09 22:18
B_U_A6-Mar-09 22:18 
QuestionProblems with Overriding OnOK() and OnCancel() Pin
B_U_A7-Mar-09 16:17
B_U_A7-Mar-09 16:17 
AnswerRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
Nishad S8-Mar-09 5:31
Nishad S8-Mar-09 5:31 
QuestionRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A9-Mar-09 1:03
B_U_A9-Mar-09 1:03 
AnswerRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
Nishad S9-Mar-09 2:06
Nishad S9-Mar-09 2:06 
QuestionRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A9-Mar-09 23:50
B_U_A9-Mar-09 23:50 
AnswerRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
Nishad S10-Mar-09 23:44
Nishad S10-Mar-09 23:44 
GeneralRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
B_U_A12-Mar-09 22:32
B_U_A12-Mar-09 22:32 
GeneralRe: Simple Noob Question: Problem with "CONTROL PARENT" setting in tabbed dialog Pin
Nishad S13-Mar-09 1:59
Nishad S13-Mar-09 1:59 
Questioncreating toolbar for IE Pin
Ash_VCPP5-Mar-09 22:08
Ash_VCPP5-Mar-09 22:08 

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.