Click here to Skip to main content
15,917,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using ShellExecute to close... Pin
randomrockers31-May-09 22:29
randomrockers31-May-09 22:29 
GeneralRe: using ShellExecute to close... Pin
tolw31-May-09 22:44
tolw31-May-09 22:44 
GeneralRe: using ShellExecute to close... Pin
randomrockers31-May-09 22:57
randomrockers31-May-09 22:57 
GeneralRe: using ShellExecute to close... Pin
CPallini31-May-09 23:04
mveCPallini31-May-09 23:04 
GeneralRe: using ShellExecute to close... Pin
randomrockers31-May-09 23:22
randomrockers31-May-09 23:22 
GeneralRe: using ShellExecute to close... Pin
tolw31-May-09 23:36
tolw31-May-09 23:36 
GeneralRe: using ShellExecute to close... Pin
tolw31-May-09 23:34
tolw31-May-09 23:34 
AnswerRe: using ShellExecute to close... Pin
CPallini31-May-09 21:48
mveCPallini31-May-09 21:48 
QuestionRefresh Desktop programatically Pin
krishnakumartm31-May-09 21:05
krishnakumartm31-May-09 21:05 
AnswerRe: Refresh Desktop programatically Pin
«_Superman_»31-May-09 21:10
professional«_Superman_»31-May-09 21:10 
AnswerRe: Refresh Desktop programatically Pin
khan++31-May-09 21:59
khan++31-May-09 21:59 
QuestionString check Pin
pandit8431-May-09 20:55
pandit8431-May-09 20:55 
AnswerRe: String check Pin
«_Superman_»31-May-09 21:17
professional«_Superman_»31-May-09 21:17 
AnswerRe: String check Pin
Nibu babu thomas31-May-09 22:13
Nibu babu thomas31-May-09 22:13 
QuestionHow to retrive console's code page? Pin
birajendu31-May-09 20:43
birajendu31-May-09 20:43 
AnswerRe: How to retrive console's code page? Pin
«_Superman_»31-May-09 21:08
professional«_Superman_»31-May-09 21:08 
GeneralRe: How to retrive console's code page? Pin
birajendu1-Jun-09 1:35
birajendu1-Jun-09 1:35 
AnswerRe: How to retrive console's code page? Pin
norish1-Jun-09 6:06
norish1-Jun-09 6:06 
QuestionIncorrect argc if "\" is not appended by escape character [modified] Pin
s v joshi31-May-09 20:01
s v joshi31-May-09 20:01 
Following CLI resurns me a correct argc as 5 (1 name of exe and 4 parameters)
-targetpath "C:\tmp" -targetserver vm-w23-btk02\sql2k5

but if i add \ after tmp , argc is 3
-targetpath "C:\tmp\" -targetserver vm-w23-btk02\sql2k5

so main function ignores all the parameters after "C:\tmp\" and return always 3
but if i put a escape character as "C:\tmp\\" then argc is correct as 5
but since these command is entered by user on command prompt , it is not advisable to ask user to put escape character at the end so what is a soluation to get correct number of count.

Why \ at then end of c:\tmp ignores rest of the parameters ?
Without putting a escape character as "C:\tmp\\" , How can i get correct argc ?
Also if i removed double quotes , then its returns correct argc , Only if a path include quotes and ends with \ then argc is incorrect.

int cMyclass::Main(int argc, char **argv)
{
return 0
}

-Thanks
Sandeep

modified on Monday, June 1, 2009 2:20 AM

AnswerRe: Incorrect argc if "\" is not appended by escape character Pin
«_Superman_»31-May-09 20:18
professional«_Superman_»31-May-09 20:18 
QuestionRe: Incorrect argc if "\" is not appended by escape character Pin
David Crow1-Jun-09 3:46
David Crow1-Jun-09 3:46 
QuestionWhat triggers CAsyncSocket::OnSend Pin
ForNow31-May-09 12:36
ForNow31-May-09 12:36 
AnswerRe: What triggers CAsyncSocket::OnSend Pin
«_Superman_»31-May-09 19:32
professional«_Superman_»31-May-09 19:32 
GeneralRe: What triggers CAsyncSocket::OnSend Pin
ForNow31-May-09 22:40
ForNow31-May-09 22:40 
AnswerRe: What triggers CAsyncSocket::OnSend Pin
hanq_3891013031-May-09 19:33
hanq_3891013031-May-09 19:33 

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.