サンプルソースを見ましたが、
_tmain()の中でint count=0;となっています
https://github.com/JamesGlanville/t6-tx-to-joystick-bridge/blob/master/vJoyClient.cpp

while (1)
{
/*
ここに>>45のソース
*/
count++;
if (count > 640) count=0;
}