Click here to Skip to main content
15,889,403 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: What triggers CAsyncSocket::OnSend Pin
norish31-May-09 19:37
norish31-May-09 19:37 
Questiongsm program Pin
agetina31-May-09 7:12
agetina31-May-09 7:12 
AnswerRe: gsm program Pin
CPallini31-May-09 20:24
mveCPallini31-May-09 20:24 
QuestionAuto Scroll Vertical to the last line Pin
susanne131-May-09 5:48
susanne131-May-09 5:48 
AnswerRe: Auto Scroll Vertical to the last line Pin
«_Superman_»31-May-09 19:30
professional«_Superman_»31-May-09 19:30 
GeneralRe: Auto Scroll Vertical to the last line Pin
susanne12-Jun-09 4:56
susanne12-Jun-09 4:56 
QuestionI am gettin the E_DRM_SERVER_NOT_FOUND while doing the OnlinePublishing in AD RMS Application Pin
deadlyabbas31-May-09 2:48
deadlyabbas31-May-09 2:48 
Questiondlls compatibility Pin
prithaa31-May-09 1:17
prithaa31-May-09 1:17 
AnswerRe: dlls compatibility Pin
Stuart Dootson31-May-09 13:27
professionalStuart Dootson31-May-09 13:27 
QuestionI want no flicking this Dialog picture Please help! [modified] Pin
UGIF30-May-09 23:02
UGIF30-May-09 23:02 
AnswerRe: I want no flicking this Dialog picture Please help! Pin
asrelu1-Jun-09 13:41
asrelu1-Jun-09 13:41 

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.