Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DDX and Arrays Pin
Ozer Karaagac11-Jun-09 23:39
professionalOzer Karaagac11-Jun-09 23:39 
GeneralRe: DDX and Arrays Pin
stevepqr12-Jun-09 0:02
stevepqr12-Jun-09 0:02 
QuestionSaving and Restoring Toolbars (Win32 SDK) Pin
signalatub11-Jun-09 22:03
signalatub11-Jun-09 22:03 
QuestionAdd support for Memory leak detection Pin
Nandu_77b11-Jun-09 20:14
Nandu_77b11-Jun-09 20:14 
AnswerRe: Add support for Memory leak detection Pin
chirag_chauhan11-Jun-09 20:46
chirag_chauhan11-Jun-09 20:46 
QuestionRe: Add support for Memory leak detection Pin
Nandu_77b11-Jun-09 21:02
Nandu_77b11-Jun-09 21:02 
AnswerRe: Add support for Memory leak detection Pin
Hamid_RT11-Jun-09 21:32
Hamid_RT11-Jun-09 21:32 
Questionsegmentation problem Pin
sandeep_dhruwa11-Jun-09 19:31
sandeep_dhruwa11-Jun-09 19:31 
Help me with these program
/* program to illustrte read function with pointer */
//this program may not work properly because of memory problems in read
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
int main()
{
char *buf,c;
int nread;
memset(buf,0,0);
buf=malloc(1024);
nread=read(0,&buf,100);
printf("characters read: %d\n",nread);

if(nread == -1)
{
write(2,"An error occured in read function\n",27);
}
else
{
if(nread==0)
write(2,"Data is not written to the filedescriptor\n",27);
else
write(1,&buf,nread);
}
free(buf);
}

output:
sandeep@sandeepUnsure | :~ $ ./a.out <x
characters read: 75
this is Kead program
which is throwing lots of errore
lets correct them
Segmentation fault

AnswerRe: segmentation problem Pin
Cedric Moonen11-Jun-09 20:13
Cedric Moonen11-Jun-09 20:13 
GeneralRe: segmentation problem Pin
sandeep_dhruwa11-Jun-09 21:06
sandeep_dhruwa11-Jun-09 21:06 
GeneralRe: segmentation problem Pin
Cedric Moonen11-Jun-09 21:11
Cedric Moonen11-Jun-09 21:11 
GeneralRe: segmentation problem Pin
sandeep_dhruwa11-Jun-09 23:51
sandeep_dhruwa11-Jun-09 23:51 
AnswerRe: segmentation problem Pin
CPallini11-Jun-09 21:25
mveCPallini11-Jun-09 21:25 
QuestionCall to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:01
Member 397434711-Jun-09 18:01 
AnswerRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Naveen11-Jun-09 18:18
Naveen11-Jun-09 18:18 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
N a v a n e e t h11-Jun-09 18:23
N a v a n e e t h11-Jun-09 18:23 
JokeRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Naveen11-Jun-09 18:26
Naveen11-Jun-09 18:26 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:28
Member 397434711-Jun-09 18:28 
AnswerRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
N a v a n e e t h11-Jun-09 18:22
N a v a n e e t h11-Jun-09 18:22 
GeneralRe: Call to a constructor while executing (obj &lt; 3) . Kindly explain? Pin
Member 397434711-Jun-09 18:38
Member 397434711-Jun-09 18:38 
Questionneed help on liked error Pin
vigneshvdm11-Jun-09 16:50
vigneshvdm11-Jun-09 16:50 
AnswerRe: need help on liked error Pin
CPallini11-Jun-09 21:36
mveCPallini11-Jun-09 21:36 
QuestionHow to get ip address of current socket Pin
cozyu11-Jun-09 16:10
cozyu11-Jun-09 16:10 
AnswerRe: How to get ip address of current socket Pin
yifanernei11-Jun-09 17:02
yifanernei11-Jun-09 17:02 
Questionc programing project on rejistration Pin
seiyfu yesuf11-Jun-09 12:04
seiyfu yesuf11-Jun-09 12:04 

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.