Home > Back-end >  encapsulation
encapsulation

Time:10-05

O how to code encapsulation,

CodePudding user response:

The basic approach is DLL + lib; What is, of course, if you want to release control BPI, I feel the DLL is better with some, of course, if you want to dynamic linking pay attention to the underlined and parameter expression function head, also can use the extern "C" output format for the standard C without parameters,

CodePudding user response:

Encapsulation? With the code of encapsulated into a function or class

There is also a function encapsulation into DLL dynamic link libraries, such as don't know the original poster is a what kind?

CodePudding user response:

Several related concepts: the package library dynamic library application program interface

Packaging is to be clear, before your code to do something, whether these functions are universal, are more likely to use way, others are easier to understand the usage patterns, encapsulation is built around these problems, as for the packaging forms and methods, generally not more than limit,