Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: add " to a string Pin
Cedric Moonen6-Apr-08 23:25
Cedric Moonen6-Apr-08 23:25 
GeneralRe: add " to a string Pin
ptr_Electron7-Apr-08 3:03
ptr_Electron7-Apr-08 3:03 
GeneralRe: add " to a string Pin
Cedric Moonen7-Apr-08 3:13
Cedric Moonen7-Apr-08 3:13 
GeneralRe: add " to a string Pin
ptr_Electron7-Apr-08 3:17
ptr_Electron7-Apr-08 3:17 
GeneralRe: add " to a string Pin
Cedric Moonen7-Apr-08 3:23
Cedric Moonen7-Apr-08 3:23 
QuestionRe: add " to a string Pin
CPallini7-Apr-08 3:14
mveCPallini7-Apr-08 3:14 
GeneralRe: add " to a string Pin
ptr_Electron7-Apr-08 3:16
ptr_Electron7-Apr-08 3:16 
QuestionRe: add " to a string Pin
CPallini7-Apr-08 3:23
mveCPallini7-Apr-08 3:23 
GeneralRe: add " to a string Pin
David Crow7-Apr-08 3:37
David Crow7-Apr-08 3:37 
Generalsocket proramming Pin
ADTC#6-Apr-08 22:34
ADTC#6-Apr-08 22:34 
GeneralRe: socket proramming Pin
Cedric Moonen6-Apr-08 23:08
Cedric Moonen6-Apr-08 23:08 
QuestionRe: socket proramming Pin
ADTC#7-Apr-08 1:50
ADTC#7-Apr-08 1:50 
GeneralRe: socket proramming Pin
Cedric Moonen7-Apr-08 3:04
Cedric Moonen7-Apr-08 3:04 
GeneralRe: socket proramming Pin
ADTC#7-Apr-08 20:31
ADTC#7-Apr-08 20:31 
GeneralRe: socket proramming Pin
James R. Twine7-Apr-08 3:44
James R. Twine7-Apr-08 3:44 
GeneralRe: socket proramming Pin
Nitheesh George7-Apr-08 4:46
Nitheesh George7-Apr-08 4:46 
GeneralRe: socket proramming Pin
ADTC#7-Apr-08 18:29
ADTC#7-Apr-08 18:29 
Yea thanks for tht but even after taking the variable declarations in the begining of the program i get error messages. For socket programming does C have some other constructs? Cos the books i used had socket as a structures and i could use it. can anyone suggest anything?
cheers
this is the error messages that i get.
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(11) : error C2065: 'sockaddr_in' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(11) : error C2146: syntax error : missing ';' before identifier 'Cservice'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(11) : error C2065: 'Cservice' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(12) : error C2143: syntax error : missing ';' before 'type'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(13) : error C2143: syntax error : missing ';' before 'type'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(14) : error C2143: syntax error : missing ';' before 'type'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(15) : error C2143: syntax error : missing ';' before 'type'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(33) : error C2065: 'Cservice' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(33) : error C2224: left of '.sin_family' must have struct/union type
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(34) : error C2065: 'Cservice' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(34) : error C2224: left of '.sin_addr' must have struct/union type
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(35) : error C2065: 'Cservice' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(35) : error C2224: left of '.sin_port' must have struct/union type
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(36) : error C2065: 'sockaddr' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(36) : error C2059: syntax error : ')'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(44) : error C2059: syntax error : 'while'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : error C2065: 'mysocket' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : error C2065: 'sendbuff' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : warning C4024: 'send' : different types for formal and actual parameter 2
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : error C2065: 'sendbuff' : undeclared identifier
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : warning C4024: 'strlen' : different types for formal and actual parameter 1
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(58) : error C2099: initializer is not a constant
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(59) : error C2059: syntax error : 'if'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(61) : error C2059: syntax error : 'else'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(68) : warning C4273: 'getchar' : inconsistent dll linkage
1> c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(273) : see previous definition of 'getchar'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(69) : error C2373: 'WSACleanup' : redefinition; different type modifiers
1> c:\program files\microsoft sdks\windows\v6.0a\include\winsock2.h(2161) : see declaration of 'WSACleanup'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(70) : error C2059: syntax error : 'return'
1>c:\documents and settings\hp\my documents\visual studio 2008\projects\socketclientc\socketclientc\client.c(71) : error C2059: syntax error : '}'
1>Build log was saved at "file://c:\Documents and Settings\HP\My Documents\Visual Studio 2008\Projects\socketclientc\socketclientc\Debug\BuildLog.htm"
1>socketclientc - 25 error(s), 5 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
GeneralRe: socket proramming Pin
ADTC#7-Apr-08 20:31
ADTC#7-Apr-08 20:31 
QuestionHow to resize window automatic. Pin
Y_Kaushik6-Apr-08 21:35
Y_Kaushik6-Apr-08 21:35 
AnswerRe: How to resize window automatic. Pin
Cedric Moonen6-Apr-08 21:49
Cedric Moonen6-Apr-08 21:49 
GeneralRe: How to resize window automatic. Pin
Y_Kaushik6-Apr-08 22:51
Y_Kaushik6-Apr-08 22:51 
GeneralRe: How to resize window automatic. Pin
Cedric Moonen6-Apr-08 23:04
Cedric Moonen6-Apr-08 23:04 
GeneralRe: How to resize window automatic. Pin
ThatsAlok7-Apr-08 2:49
ThatsAlok7-Apr-08 2:49 
AnswerRe: How to resize window automatic. Pin
ThatsAlok6-Apr-08 22:41
ThatsAlok6-Apr-08 22:41 
AnswerRe: How to resize window automatic. Pin
David Crow7-Apr-08 3:56
David Crow7-Apr-08 3:56 

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.