Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is wrong in this strcpy()? Pin
SandipG 22-Sep-08 1:51
SandipG 22-Sep-08 1:51 
GeneralRe: What is wrong in this strcpy()? Pin
Member 550287922-Sep-08 1:57
Member 550287922-Sep-08 1:57 
GeneralRe: What is wrong in this strcpy()? Pin
Rajesh R Subramanian22-Sep-08 2:02
professionalRajesh R Subramanian22-Sep-08 2:02 
GeneralRe: What is wrong in this strcpy()? Pin
SandipG 22-Sep-08 2:05
SandipG 22-Sep-08 2:05 
AnswerRe: What is wrong in this strcpy()? Pin
auralius manurung22-Sep-08 2:25
auralius manurung22-Sep-08 2:25 
QuestionRe: What is wrong in this strcpy()? Pin
CPallini22-Sep-08 2:41
mveCPallini22-Sep-08 2:41 
AnswerRe: What is wrong in this strcpy()? Pin
auralius manurung22-Sep-08 16:45
auralius manurung22-Sep-08 16:45 
GeneralRe: What is wrong in this strcpy()? Pin
CPallini22-Sep-08 22:04
mveCPallini22-Sep-08 22:04 
char * p =(char*) malloc(strlen(s)+1);
s1 = (char*) malloc(10); //use this!!!!
p=s;

allocating memory for p and then setting p=s; make no sense to me.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: What is wrong in this strcpy()? Pin
auralius manurung23-Sep-08 7:43
auralius manurung23-Sep-08 7:43 
AnswerRe: What is wrong in this strcpy()? Pin
David Crow22-Sep-08 3:05
David Crow22-Sep-08 3:05 
AnswerRe: What is wrong in this strcpy()? Pin
Member 419459322-Sep-08 8:31
Member 419459322-Sep-08 8:31 
AnswerRe: What is wrong in this strcpy()? Pin
Mahesh Kulkarni22-Sep-08 20:34
Mahesh Kulkarni22-Sep-08 20:34 
QuestionAccessing a Variable from another function. Pin
T.RATHA KRISHNAN22-Sep-08 0:19
T.RATHA KRISHNAN22-Sep-08 0:19 
AnswerRe: Accessing a Variable from another function. Pin
CPallini22-Sep-08 0:26
mveCPallini22-Sep-08 0:26 
QuestionRe: Accessing a Variable from another function. Pin
T.RATHA KRISHNAN22-Sep-08 0:46
T.RATHA KRISHNAN22-Sep-08 0:46 
AnswerRe: Accessing a Variable from another function. Pin
CPallini22-Sep-08 1:41
mveCPallini22-Sep-08 1:41 
AnswerRe: Accessing a Variable from another function. Pin
_AnsHUMAN_ 22-Sep-08 0:27
_AnsHUMAN_ 22-Sep-08 0:27 
QuestionDifference b/w strlen(NULL) and strlen("") Pin
SRKSHOME22-Sep-08 0:18
SRKSHOME22-Sep-08 0:18 
AnswerRe: Difference b/w strlen(NULL) and strlen("") Pin
CPallini22-Sep-08 0:23
mveCPallini22-Sep-08 0:23 
AnswerRe: Difference b/w strlen(NULL) and strlen("") Pin
toxcct22-Sep-08 21:30
toxcct22-Sep-08 21:30 
Questionoption button in tree control Pin
VCProgrammer21-Sep-08 23:37
VCProgrammer21-Sep-08 23:37 
Questionhow to create and run a webserver in VC++(MFC) Pin
tns_ranjith21-Sep-08 23:32
tns_ranjith21-Sep-08 23:32 
RantRe: how to create and run a webserver in VC++(MFC) Pin
Rajesh R Subramanian22-Sep-08 0:10
professionalRajesh R Subramanian22-Sep-08 0:10 
AnswerRe: how to create and run a webserver in VC++(MFC) Pin
enhzflep22-Sep-08 0:36
enhzflep22-Sep-08 0:36 
AnswerRe: how to create and run a webserver in VC++(MFC) Pin
Mark Salsbery22-Sep-08 5:53
Mark Salsbery22-Sep-08 5:53 

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.