Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: store certain amount of total number Pin
Christian Graus2-Jan-07 19:12
protectorChristian Graus2-Jan-07 19:12 
GeneralRe: store certain amount of total number Pin
davvid2-Jan-07 20:10
davvid2-Jan-07 20:10 
GeneralRe: store certain amount of total number Pin
Christian Graus2-Jan-07 22:15
protectorChristian Graus2-Jan-07 22:15 
QuestionCan Custom control with generic CWnd use CScrollView? Pin
cyn82-Jan-07 18:41
cyn82-Jan-07 18:41 
AnswerRe: Can Custom control with generic CWnd use CScrollView? Pin
kasturi_haribabu3-Jan-07 0:19
kasturi_haribabu3-Jan-07 0:19 
AnswerRe: Can Custom control with generic CWnd use CScrollView? Pin
dabs3-Jan-07 3:06
dabs3-Jan-07 3:06 
Questionwhy is connect returning -1? Pin
arbster2-Jan-07 18:38
arbster2-Jan-07 18:38 
AnswerRe: why is connect returning -1? Pin
Richard Andrew x642-Jan-07 18:41
professionalRichard Andrew x642-Jan-07 18:41 
I think your problem is here:

arbster wrote:
/* Get socket */

if ((sockfd=socket(AF_INET,SOCK_STREAM,0)) < 0) {
perror("socket");
exit(1);
}



You need to specify a protocol for the socket you are creating. It's the third parameter. One of the protocols is IPPROTO_TCP. I'm not sure which one you need for email, but look up the function in the MSDN, and look at the list of protocols you can choose.



--------------------------------

"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke

GeneralRe: why is connect returning -1? Pin
arbster2-Jan-07 19:02
arbster2-Jan-07 19:02 
QuestionRe: why is connect returning -1? Pin
prasad_som2-Jan-07 18:44
prasad_som2-Jan-07 18:44 
AnswerRe: why is connect returning -1? Pin
arbster2-Jan-07 18:52
arbster2-Jan-07 18:52 
GeneralRe: why is connect returning -1? Pin
Richard Andrew x642-Jan-07 19:24
professionalRichard Andrew x642-Jan-07 19:24 
QuestionWinsock Connections Pin
Richard Andrew x642-Jan-07 18:16
professionalRichard Andrew x642-Jan-07 18:16 
AnswerRe: Winsock Connections Pin
Richard Andrew x642-Jan-07 18:38
professionalRichard Andrew x642-Jan-07 18:38 
QuestionWow...This is killing me!! Sombody please Help!! Pin
arbster2-Jan-07 16:52
arbster2-Jan-07 16:52 
AnswerRe: Wow...This is killing me!! Sombody please Help!! Pin
prasad_som2-Jan-07 17:12
prasad_som2-Jan-07 17:12 
AnswerRe: Wow...This is killing me!! Sombody please Help!! Pin
bob169722-Jan-07 18:07
bob169722-Jan-07 18:07 
QuestionERROR IN FROM CLAUSE Pin
Shouvik Das2-Jan-07 16:35
Shouvik Das2-Jan-07 16:35 
AnswerRe: ERROR IN FROM CLAUSE Pin
Chris Maunder2-Jan-07 17:28
cofounderChris Maunder2-Jan-07 17:28 
AnswerRe: ERROR IN FROM CLAUSE Pin
S Douglas2-Jan-07 19:45
professionalS Douglas2-Jan-07 19:45 
QuestionLink Error Pin
dellthinker2-Jan-07 16:15
dellthinker2-Jan-07 16:15 
AnswerRe: Link Error Pin
Stephen Hewitt2-Jan-07 16:33
Stephen Hewitt2-Jan-07 16:33 
Questiontext file as custom resource Pin
dene999702-Jan-07 14:08
dene999702-Jan-07 14:08 
AnswerRe: text file as custom resource Pin
Stephen Hewitt2-Jan-07 16:32
Stephen Hewitt2-Jan-07 16:32 
AnswerRe: text file as custom resource Pin
S Douglas2-Jan-07 19:53
professionalS Douglas2-Jan-07 19: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.