Home > Back-end >  C how to set up two classes share of engineering structure of a class?
C how to set up two classes share of engineering structure of a class?

Time:09-15

I have A class A, for example, to use in class B, at the same time also want to use in class C, now I want to make A class C A DLL, and then call in the class B class C, how to arrange these three classes in the engineering structure in the set?
Is now I put the class A, in A public folder includes all join in the class B and class C class A header and source files, compiled separately, but I don't think so the same class A needs to be compiled twice, in both the use of its class B and class C are present, feel so not is very reasonable, if can be optimized to do?

CodePudding user response:

This need should use bales (packages) and is A special kind of DLL, package and the main program to share the same set of RTL, can avoid many problems, such as your case is compiled A as two problems
  • Related