Thanks for your answer but that code didn't work for me
I got this error:
error C2106: '=' : left operand must be l-value

I tried to change it to "==" but that didn't work either. I'm using VC++ 6.0. Do I have to compile it in another compiler or what?
Does anyone have a solution or maybe some other code?