Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mutithread using _beginthread

Status
Not open for further replies.

adiMasher

Programmer
Joined
Aug 31, 2001
Messages
144
Location
US
I'm not understanding exactly what's going wrong here.

I'm declaring my function like this

Code:
void DatagramServer( short nPort );

and I'm trying to call it like this

Code:
_beginthread(DatagramServer, 0, (void*)nPort);

I keep getting errors like this
[tt]
MAEVT.c(126) : warning C4028: formal parameter 1 different from declaration
MAEVT.c(126) : warning C4024: '_beginthread' : different types for formal and actual parameter 1
[/tt]

when I'm declaring threads in other places just fine.

What is going on?

Thanks,
Martin
I don't suffer from insanity.
I enjoy every minute of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top