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

C / C++ / MFC

 
GeneralRe: process ID to process name Pin
Aamir Butt11-Jan-05 19:33
Aamir Butt11-Jan-05 19:33 
GeneralVirtual Destructors Pin
Neelesh K J Jain11-Jan-05 18:07
Neelesh K J Jain11-Jan-05 18:07 
GeneralRe: Virtual Destructors Pin
Cedric Moonen11-Jan-05 19:58
Cedric Moonen11-Jan-05 19:58 
GeneralRe: Virtual Destructors Pin
digwizfox13-Jan-05 7:16
digwizfox13-Jan-05 7:16 
GeneralGDI Edit Questions, Please Help Pin
c++code10111-Jan-05 17:50
c++code10111-Jan-05 17:50 
GeneralCProgressCtrl problem in Status bar Pin
Neelesh K J Jain11-Jan-05 16:44
Neelesh K J Jain11-Jan-05 16:44 
GeneralNot a problem... Pin
Kochise11-Jan-05 21:51
Kochise11-Jan-05 21:51 
Generalgethostbyname C2143 Pin
Vadim Tabakman11-Jan-05 14:57
Vadim Tabakman11-Jan-05 14:57 
Hi all,

Simple function (cut down to not include all the other crap.

I have #included the winsock.h and included the wsock32.lib.

int GetIPAddresses()
{
char shostname[255];
int e = 0;

e=gethostname(shostname, sizeof(shostname));
struct hostent *pdata = ::gethostbyname(ashostname);
}

On compiling I get this error :
error C2143: syntax error : missing ';' before 'type'

Does anyone know what that is?

[EDIT]This is in C and not C++. I forgot to mention that.[/EDIT]

Cheers,

"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
GeneralRe: gethostbyname C2143 Pin
Antony M Kancidrowski12-Jan-05 2:28
Antony M Kancidrowski12-Jan-05 2:28 
GeneralRe: gethostbyname C2143 Pin
Vadim Tabakman12-Jan-05 10:00
Vadim Tabakman12-Jan-05 10:00 
GeneralCRichEditView - Dragging file into Pin
Ed K11-Jan-05 14:41
Ed K11-Jan-05 14:41 
GeneralRe: CRichEditView - Dragging file into : ON_WM_DROPFILES() Pin
Ed K12-Jan-05 6:42
Ed K12-Jan-05 6:42 
Generalrecommend gui library Pin
Anonymous11-Jan-05 14:38
Anonymous11-Jan-05 14:38 
GeneralRe: recommend gui library Pin
Ed K11-Jan-05 14:45
Ed K11-Jan-05 14:45 
GeneralRetrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 13:41
LiYS11-Jan-05 13:41 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien11-Jan-05 14:03
Maximilien11-Jan-05 14:03 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 14:21
LiYS11-Jan-05 14:21 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien11-Jan-05 16:05
Maximilien11-Jan-05 16:05 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
LiYS11-Jan-05 16:18
LiYS11-Jan-05 16:18 
GeneralRe: Retrieve FDT(File Directory Table) for specific folders!! !! Pin
Maximilien12-Jan-05 0:41
Maximilien12-Jan-05 0:41 
QuestionHow to seek >2gb files with fseek? Pin
IGx8911-Jan-05 12:07
IGx8911-Jan-05 12:07 
AnswerRe: How to seek >2gb files with fseek? Pin
basementman12-Jan-05 4:09
basementman12-Jan-05 4:09 
GeneralRe: How to seek >2gb files with fseek? Pin
IGx8912-Jan-05 4:54
IGx8912-Jan-05 4:54 
GeneralAccessing IwebBrowser2 outside toolbar class Pin
tnguyen44411-Jan-05 11:17
tnguyen44411-Jan-05 11:17 
GeneralSerial com port communication! Pin
Member 162670711-Jan-05 10:37
Member 162670711-Jan-05 10: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.