HPaintCB class has a Set() method, but it can't conflict with a Set() function.
It seems that some preprocessor rule, which you use, converts oPaintCB:Set() to oPaintCB:Leto_Set(). You need to check it.

Regards, Alexander