It's not my decision to mix Qt and mfc. I simply have to do it. Anyway the problem was solved. I've exported function "init()" which must be called before dll using.