>>215
もしかして 64ビット環境?
とりあえずキャストすればいいんじゃないかな

_beginthreadex(NULL, 0, mythread, NULL, 0, (unsigned int *)&thID);