In the previous article, I talked about the number of QUAKEs in different DLLs, and the interaction between them uses the lead function as an interface. This is a bit like COM, the difference is COM needs to do DLL Register, because COM is sometimes available to multiple applications, the application is positioned through the GUID in the registration table, and then load into the process space of the program. But the quake's DLL is different, it doesn't have to let all Both the app knows its existence, it is a special engine, and there is no thing to leave the engine. Different from the QUAKE DLL is that the main programming language of COM is C , an object-oriented language, it produces The interface is in class, so using its language must also be object-oriented. But quake is written by pure C, there is no class concept, so it provides the interface to the form of a pure function.
The DLL mode is used in a large number of game design, selecting it as a game's constructing method not without its truth.