Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
Christian Graus30-Aug-05 17:41
protectorChristian Graus30-Aug-05 17:41 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
Garth J Lancaster30-Aug-05 18:36
professionalGarth J Lancaster30-Aug-05 18:36 
AnswerRe: how to delete say some 50 bytes from the begning of the file Pin
John R. Shaw30-Aug-05 21:05
John R. Shaw30-Aug-05 21:05 
Questionerror C2227 Pin
Member 216100430-Aug-05 16:59
Member 216100430-Aug-05 16:59 
AnswerRe: error C2227 Pin
Christian Graus30-Aug-05 17:10
protectorChristian Graus30-Aug-05 17:10 
GeneralRe: error C2227 Pin
Member 216100430-Aug-05 17:30
Member 216100430-Aug-05 17:30 
GeneralRe: error C2227 Pin
Christian Graus30-Aug-05 17:39
protectorChristian Graus30-Aug-05 17:39 
GeneralRe: error C2227 Pin
30-Aug-05 17:58
suss30-Aug-05 17:58 
I have a dialog and only got one start button. I do some program about ListenThread and got around 4 errors. All of the errors is about undefined identifier.I don't know how and where to declare it. In the Dlg.h file?
Below is apart of my code:
UINT ListenThread(LPVOID lParam)
{


char szMessage[300];

wsprintf(szMessage, "(ListenThread) - Starting TCP/IP Initialisations.");
//WriteSysLog(szMessage);

ServerSkt = socket ( AF_INET, SOCK_STREAM, 0 );



return 0;
}

I have header files as shown below:
Resource.h
StdAfx.h
TCPTest.h
TCPTeseDlg.h

and the errors are below
error C2065: 'ServerSkt' : undeclared identifier
error C2065: 'socket' : undeclared identifier
error C2065: 'AF_INET' : undeclared identifier
error C2065: 'SOCK_STREAM' : undeclared identifier
Error executing cl.exe.

where should I declare ?

-- modified at 0:09 Wednesday 31st August, 2005
GeneralRe: error C2227 Pin
Christian Graus30-Aug-05 18:15
protectorChristian Graus30-Aug-05 18:15 
GeneralRe: error C2227 Pin
Member 216100430-Aug-05 19:48
Member 216100430-Aug-05 19:48 
GeneralRe: error C2227 Pin
Christian Graus1-Sep-05 12:26
protectorChristian Graus1-Sep-05 12:26 
AnswerRe: error C2227 Pin
kakan30-Aug-05 19:10
professionalkakan30-Aug-05 19:10 
General[Msg Deleted] Pin
sunit530-Aug-05 22:17
sunit530-Aug-05 22:17 
GeneralRe: error C2227 Pin
sunit530-Aug-05 22:20
sunit530-Aug-05 22:20 
AnswerRe: error C2227 Pin
ThatsAlok30-Aug-05 20:54
ThatsAlok30-Aug-05 20:54 
QuestionTab view like visual.net Pin
zhangwm30-Aug-05 16:21
zhangwm30-Aug-05 16:21 
AnswerRe: Tab view like visual.net Pin
Christian Graus30-Aug-05 16:29
protectorChristian Graus30-Aug-05 16:29 
GeneralRe: Tab view like visual.net Pin
zhangwm30-Aug-05 17:07
zhangwm30-Aug-05 17:07 
GeneralRe: Tab view like visual.net Pin
Christian Graus30-Aug-05 17:09
protectorChristian Graus30-Aug-05 17:09 
QuestionWriting to an html file with character set euc-jp Pin
babyspidy30-Aug-05 16:19
babyspidy30-Aug-05 16:19 
AnswerRe: Writing to an html file with character set euc-jp Pin
Jose Lamas Rios30-Aug-05 18:45
Jose Lamas Rios30-Aug-05 18:45 
GeneralRe: Writing to an html file with character set euc-jp Pin
babyspidy30-Aug-05 23:00
babyspidy30-Aug-05 23:00 
GeneralRe: Writing to an html file with character set euc-jp Pin
babyspidy30-Aug-05 23:34
babyspidy30-Aug-05 23:34 
QuestionStill stuck, linker hell Pin
Christian Graus30-Aug-05 13:15
protectorChristian Graus30-Aug-05 13:15 
AnswerRe: Still stuck, linker hell Pin
Rick York30-Aug-05 13:37
mveRick York30-Aug-05 13:37 

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.