Andrey,
I get these errors with your PellesC project as a 64bit app on
I've used this SDK _http://forum.pellesc.de/index.php?topic=7017.0
That cause the problem...
attached updated version... should be compiled now
Added:By the way Andrey, there are some part of the code when reading images that i didn't remember to have ever posted here (especially magenta processing and the alpha channel change for mouse detection). 
You post somewhere... I don't remember where from, but I have CRD3.zip -> gControl.inc
And I can recover source code from compiled binary... (made functional analog...)
Many years of Reverse Engineering...
