I have tried all these but the problem remais. I think that the real problem is somewhere here "undefined reference to `vtable for ThreadDialog' ", but I don't know what to do.