Home > Mobile >  Qt DLL in a DLL in how to inherit the other class?
Qt DLL in a DLL in how to inherit the other class?

Time:03-05

A dynamic library a. d. ll, I'm going to write B.d ll, how can I inherited in B.d ll a. d. ll AClass inside class, B.d ll only a DLL file, how to write code, please tall person to give directions, thank you!!!!!!

CodePudding user response:

A bit dizzy, you this problem is to say, how to use the dynamic library classes in the right? Do you want to export to come out in the form of DLL encapsulation of one class to another code to use, so, do you have in this class must define a pure virtual parent, or c + + interface, then it is better for a singleton factory returns an instance of the class, and then you call the code in the use of the DLL, is actually the first through the access to the singleton factory function class, forget it, you just want to inherit the class
  •  Tags:  
  • Qt
  • Related