I'm not understanding exactly what's going wrong here.
I'm declaring my function like this
and I'm trying to call it like this
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.
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.