Method and system for building third party library for software platform

The method and system for constructing third-party libraries with automatic resource management and interface identification address inefficiencies and stability issues by enabling seamless integration and management of third-party libraries without manual updates, enhancing development efficiency.

JP2025111646APending Publication Date: 2025-07-30SHANGHAI TOSUN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025072055
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-29
Filing Date
2025-04-24
Publication Date
2025-07-30

AI Technical Summary

Technical Problem

Existing software platforms face inefficiencies and stability issues due to the need for manual updates when adding or modifying third-party libraries, as they require continuous updates to maintain compatibility, leading to a significant workload and reduced development efficiency.

Method used

A method and system for constructing third-party libraries that include initialization, capability acquisition, and release sub-modules, enabling automatic resource management and interface identification without manual user intervention.

Benefits of technology

Ensures stability and improves development efficiency by allowing software platforms to automatically identify and manage third-party library interfaces, reducing the need for manual updates and minimizing architectural instability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025111646000001_ABST
    Figure 2025111646000001_ABST
Patent Text Reader

Abstract

To solve the problem in which: even after a third party library is unloaded, resources are not released and are continuously occupied.SOLUTION: An initialization sub module, a capability acquisition sub module, an internal sub module, and a release sub module are built in a third party library. The release sub module automatically releases resources applied by the third party library when the third party library is unloaded.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and specifically relates to a method and system for constructing a third-party library for a software platform.

Background Art

[0002] A software platform based on Windows performs function expansion by introducing a third-party library. For interface functions derived from a third-party library, the software platform must know the definitions of these interface functions, and cannot realize the function call of the third-party library without updating the call program.

[0003] For an added third-party library or an existing upgraded third-party library, since the interface functions change, developers of the software platform cannot realize the call of the corresponding third-party library file functions without manually updating the call program. Such a method requires that the software platform continuously updates the call program based on the third-party library to maintain the compatibility between the software platform and the third-party library, resulting in a large workload and low efficiency.

[0004] Therefore, based on the above technical problems, it is necessary to design a new method and system for constructing a third-party library for a software platform.

Summary of the Invention

[0005] The object of the present invention is to provide a method and system for constructing a third-party library for a software platform.

[0006] To solve the above technical problems, the present invention provides a disassembled call method for third-party library functions for a software platform, including the following: Construct a third-party library, Verify the legality of the third-party library, and Call the third-party library.

[0007] Furthermore, the method for constructing the above third-party library includes the following: Construct the above third-party library by the software platform, that is, construct the initialization sub-module, the capability acquisition sub-module, and the internal sub-module in the above third-party library by the software platform, and construct the release sub-module in the above third-party library. The above release sub-module is suitable for automatically releasing the resources applied for by the above third-party library when the above third-party library is unloaded.

[0008] Furthermore, the method for constructing the above initialization sub-module by the software platform includes the following: Generate the above initialization sub-module by the header file of the software platform and the software platform API list in the software platform. After the call of the above initialization sub-module is completed, the above third-party library obtains the address information of each API in the API list provided by the software platform.

[0009] Furthermore, the method for constructing the above capability acquisition sub-module by the software platform includes the following: The above software platform loads the version number of the software platform, loads the list of user logic callback sub-modules to generate the above capability acquisition sub-module. When an external program calls the above capability acquisition sub-module, it obtains the version information of the software platform corresponding to the above third-party library, obtains the list information of the above user logic callback sub-modules, and obtains all the internal sub-module information of the above third-party library.

[0010] Furthermore, the method for constructing the internal sub-module by the software platform includes the following: Generate the internal sub-module based on the user function logic sub-module of the software platform.

[0011] Furthermore, the method for verifying the legality of the third-party library includes the following: Load the third-party library into the software platform. The software platform calls the initialization sub-module of the third-party library. The software platform calls the capability acquisition sub-module of the third-party library, obtains the version number of the software platform corresponding to the third-party library, obtains the list of user callback sub-modules, and obtains the address information and function parameter information of all internal sub-modules of the third-party library. The software platform compares the obtained version number of the software platform corresponding to the third-party library with its own version number. If the version number of the third-party library is greater than its own version number, the call to the third-party library is stopped; otherwise, the call to the third-party library continues.

[0012] Furthermore, the method for calling the third-party library includes the following: After the software platform continues to call the third-party library, the software platform is suitable for calling the third-party library based on the list of user callback sub-modules and the list of internal sub-modules obtained from the third-party library. After the call is completed, the application resources are released by calling the release sub-module in the third-party library.

[0013] In a second aspect, the present invention further provides a software platform for a method of disassembling and calling third-party library functions for the software platform, including the following: The header file of the software platform, the software platform API list, the software platform version number, the list of the user logic callback submodules, the user functional logic submodule, and a C++ compiler.

[0014] In a third aspect, the present invention further provides a third-party library for a method of disassembling and calling third-party library functions for the software platform, including the following: The initialization submodule, the capability acquisition submodule, the internal submodule, and the release submodule.

[0015] In a fourth aspect, the present invention further provides a calling system using the method of disassembling and calling third-party library functions for the software platform, including the following: A construction module that constructs the third-party library. A verification module that verifies the legitimacy of the third-party library, and A calling module that calls the third-party library.

[0016] The effects of the present invention are as follows. The present invention realizes an automatic introduction solution means for a disassembly call system of third-party library functions by constructing a third-party library, verifying the legality of the third-party library, and calling the third-party library. Whether adding a third-party library or changing a conventional third-party library function, the software platform only needs to load the third-party library and can automatically identify the function interface, without the need for the user to manually update the calling program. Such a method can guarantee the stability of the software platform architecture and reduce problems such as the reduction of stability due to repeated modification of the software platform.

[0017] Other features and advantages of the present invention are described in the following specification, and some are apparent from the specification or can be understood by implementing the present invention. The objectives and other advantages of the present invention are realized and obtained by the structures specifically pointed out in the specification and drawings. To make the above objectives, features, and advantages of the present invention more understandable, the following provides preferred embodiments and, in conjunction with the accompanying drawings, will be described in detail.

Brief Description of the Drawings

[0018] To more clearly explain the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.

[0019]

Figure 1

Figure 2

Figure 3

Figure 4

Embodiments for Carrying Out the Invention

[0020] In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the present invention with reference to the drawings. Obviously, the described embodiments are some but not all of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present invention.

[0021] Embodiment 1 FIG. 1 is a flowchart of a disassembled call method for a third-party library function for a software platform according to the present invention.

[0022] As shown in FIG. 1, this Embodiment 1 provides a disassembled call method for a third-party library function for a software platform. It includes building a third-party library, verifying the legality of the third-party library, and calling the third-party library. It realizes an automatic introduction resolution means for the disassembled call system of the third-party library function. Whether adding a third-party library or changing a conventional third-party library function, the software platform only needs to load the third-party library and can automatically identify the function interface, without the need for the user to manually update the calling program. Such a method can guarantee the stability of the software platform architecture and reduce problems such as the reduction of stability due to repeated modification of the software platform.

[0023] FIG. 2 is a flowchart of building a third-party library according to the present invention. As shown in Figure 2, in this embodiment, the method for constructing the above third-party library is as follows: The software platform calls a C++ compiler to construct the third-party library. That is, the software platform constructs an initialization sub-module (including an initialization function and corresponding functions), an ability acquisition sub-module (including an ability acquisition function and corresponding functions), and an internal sub-module (including internal functions and corresponding functions) in the third-party library, and constructs a release sub-module (including a release function and corresponding functions) in the third-party library. The above release sub-module is suitable for automatically releasing the resources applied for by the third-party library when the third-party library is unloaded. The initialization sub-module, the ability acquisition sub-module, and the release sub-module are disclosed sub-modules, and functions in the sub-modules can be automatically loaded and called by an external program. The functions in the internal sub-module are not visible from the outside.

[0024] In this embodiment, the method for constructing the initialization sub-module by the above software platform includes the following: The software platform automatically generates the initialization sub-module according to the header file of the software platform and the software platform API list within the software platform, and after the call of the initialization sub-module is completed, the third-party library acquires the address information of each API in the API list provided by the software platform. Thereby, normal functions can be exerted.

[0025] In this embodiment, the method for constructing an ability acquisition sub-module by the software platform includes the following: The software platform loads the version number of the software platform and loads a list of user logic callback sub-modules (the list of user logic callback sub-modules is a list of user logic callback functions developed by the user within the software platform) to automatically generate an ability acquisition sub-module. When an external program calls the ability acquisition sub-module, it acquires the version information of the software platform corresponding to the third-party library, the list information of the user logic callback sub-modules, and all the internal sub-module information of this third-party library.

[0026] In this embodiment, the method for constructing an internal sub-module by the software platform includes the following: An internal sub-module is generated based on the user function logic sub-module (user function logic program) of the software platform. The internal sub-module does not open an interface to the outside and can be acquired only when an external program calls an ability acquisition function.

[0027] Figure 3 is a flowchart for calling a third-party library according to the present invention. As shown in FIG. 3, in this embodiment, the method for verifying the legality of the third-party library includes the following: The calling process of the third-party library is completed through the cooperation of the software platform and the third-party library. By loading the dynamic link library in the software platform, the third-party library is loaded into the software platform. The software platform calls the initialization sub-module of the third-party library (calls the initialization function), the software platform calls the capability acquisition sub-module of the third-party library (calls the capability acquisition function), obtains the version number of the software platform corresponding to the third-party library, obtains the list of user callback sub-modules (user callback function list), and obtains the address information and function parameter information of all internal sub-modules of the third-party library (the internal functions include, for example, internal function a1, internal function a2,..., internal function an). The software platform compares the obtained version number of the software platform corresponding to the third-party library with its own version number. If the version number of the third-party library is greater than its own version number, it explains that this third-party library is compiled by a newer software platform than its own version, and stops the call of the third-party library. Otherwise, it judges the legality (meeting the requirements) of the third-party library and continues to call the third-party library. When the software platform calls the third-party library, it first adopts the method of calling the capability acquisition function. If the third-party library does not export any internal functions, all callable function resources in the third-party library can be known. And after the software platform obtains the function resources of the third-party library, it can automatically identify the internal function parameters, automatically generate the function call interface, improve the development efficiency of the software platform and the third-party library, and reduce the possibility of errors.When a third-party program is generated by a software platform, it can be called by the same version or a higher version of the software platform. During the calling process, the software platform automatically obtains the function parameter types of the third-party library, and the user does not need to update the software platform and can freely call the third-party library. This method improves the development and upgrade efficiency of the calling system.

[0028] In this embodiment, the method for calling the third-party library includes the following: After the software platform continuously calls the third-party library, the software platform is suitable for calling the third-party library based on the list of user callback sub-modules (user callback function list) and the list of internal sub-modules (internal function list) obtained from the third-party library. When the call is completed or there is no need to continue calling the third-party library, the resources applied for are released by calling the release sub-module (release function) in the third-party library.

[0029] In this embodiment, the software platform includes a header file of the software platform, a software platform API list containing API symbol information, a version number of the software platform, user logic generated by the user for the software platform (expressed in the form of callback functions), and user-defined logic designed by the user for the software platform (expressed in ordinary functions). In the process of building a third-party library, the software platform first needs to generate an initialization function, and the source code of this function is generated based on the header file of the software platform and the software platform API list containing API symbol information. Next, a capability acquisition function needs to be generated, and the source code of this function is composed of the version number of the software platform itself and the symbol information of the user logic callback function. Also, a release function needs to be generated, which is responsible for releasing the resources applied for before unloading the third-party library. Finally, a series of internal functions need to be generated, and these internal functions are the user-defined logic designed by the user for the software platform. After the required functions are generated, the software platform calls the C / C++ compiler to compile the generated functions into an executable file of the third-party library.

[0030] In this embodiment, the software platform further includes a dynamic link library loading function, a function calling function, and a version number comparison function, an execution function, and a stop function. When the software platform calls a third-party library, it is necessary to first load the third-party library through the dynamic link library loading function. After the loading is successful, the initialization function of the third-party library is called through the function calling function. Subsequently, the function calling function is used to call the capability acquisition function of the third-party library. In this embodiment, the version number of the software platform compiled into the capability acquisition function and the user logic callback function are read out and input into the software platform. The software platform knows the relationship between the build version number of the third-party library and the version number of the software platform. If the version numbers are the same or the version number of the software platform is greater than the build version number of the third-party library, the software platform can continue to call the third-party library; otherwise, the call process ends. After the execution of the version number comparison function is completed and a flag indicating continuous callability is returned, the software platform executes the execution program function. During the execution, the internal functions of the third-party library can be freely called by the software platform to provide various functions to the software platform. When there is no need to use the third-party library, the software platform executes the program stop function. This function calls the release function of the third-party library. After releasing the resources applied for by the third-party library, the call process ends.

[0031] Specifically, in this embodiment, a third-party library that provides a CRC check algorithm is taken as an example. It has a CRC16 algorithm inside. After the software platform loads the library, it can provide the user with an interface function of the CRC16 algorithm, which the user can freely call to calculate the check value of CRC16. Both the conventional software platform and the existing software platform support this method to provide functions available to the user. When new functions are added to this third-party library of the CRC check algorithm, for example: (1) when the parameters of this CRC16 check algorithm are modified from three to four, (2) when a new CRC32 algorithm is added, when the third-party library changes in the conventional software platform, the items that developers need to manually modify are as follows. Adjust the parameters of the CRC16 check algorithm defined in the software platform, support the new parameter format of the four parameters, add the interface definition of the new CRC32 algorithm, recompile the relevant modules of the software platform, and enable the modified content.

[0032] After the software platform is always updated, the user cannot know this change unless they load a third-party function library of a new CRC check algorithm using the updated software platform, and synchronously modify their own script to support the function upgrade, thereby finally realizing the functions desired by the user. Since the upgrade of the software platform is inserted into this process, it brings many uncontrollable factors such as time overhead, development overhead, software platform update and rearrangement. Therefore, when using the conventional software platform, frequent updates of the third-party function library and low efficiency are encountered. The software platform provided by the embodiment does not need to go through the process of re-upgrading the software platform itself, and the specific method is as follows: directly load the updated third-party library of CRC check, and use the capability acquisition function to obtain all API function definitions of the library, including the function parameter definitions of the updated CRC16 algorithm and the function definitions of the newly added CRC32 algorithm. Provide the latest definition of the updated third-party library of CRC check to the terminal user, and the user modifies their program based on the latest definition. When the user calls the CRC16 and CRC32 functions, the software platform gives the correct address and symbol information to ensure the smoothness of the call process. Thereby realizing the desired functions based on the new version of the third-party library.

[0033] Example 2 In addition to Example 1, this Example 2 further provides a software platform for the disassembly call method of the third-party library function for the software platform in Example 1, including the header file of the software platform, the software platform API list, the software platform version number, the list of user logical callback sub-modules, the user function logic sub-module and the C++ compiler.

[0034] In this embodiment, each sub-module and function included in the software platform have already been described in detail in Embodiment 1, and the description is omitted in this embodiment.

[0035] Embodiment 3 In addition to Embodiment 1, this Embodiment 3 further provides a third-party library for the disassembly call method of the third-party library function of the software platform in Embodiment 1, including an initialization sub-module, an ability acquisition sub-module, an internal sub-module, and a release sub-module. In this embodiment, each sub-module and function included in the third-party library have been described in detail in Embodiment 1, and the description is omitted in this embodiment.

[0036] Embodiment 4 FIG. 4 is a principle block diagram of the call system according to the present invention. As shown in FIG. 4, in addition to Embodiment 1, this Embodiment 4 further provides a call system using the disassembly call method of the third-party library function of the software platform in Embodiment 1, including: a construction module for constructing a third-party library; a verification module for verifying the legality of the third-party library; and a call module for calling the third-party library. In this embodiment, the specific functions of each module have already been described in detail in Embodiment 1, and the description is omitted in this embodiment.

[0037] Embodiment 5 In addition to the above embodiments, this Embodiment 5 further provides a call device, including a software platform and a third-party library. The above software platform is suitable for constructing and calling the third-party library. In this embodiment, the functions of the above software platform and third-party library have been described in detail in the above embodiments, and the description is omitted in this embodiment.

[0038] To sum up, the present invention realizes an automatic introduction solution for a disassembly call system of third - party library functions by constructing a third - party library and calling the third - party library. Regardless of whether a third - party library is added or a conventional third - party library function is modified, the software platform only needs to load the third - party library and can automatically identify the function interface, eliminating the need for the user to manually update the calling program. Such a method can ensure the stability of the software platform architecture and reduce problems such as the degradation of stability caused by repeated modification of the software platform.

[0039] In some embodiments provided by the present application, of course, the disclosed device and method can also be realized in other ways. The above - described device embodiments are merely illustrative. For example, the flowcharts and block diagrams in the drawings show the possible architectures, functions, and operations of the device, method, and computer program product according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of the code that contains one or more executable instructions for performing a predetermined logical function. It should be noted that in some alternative implementation methods, the functions represented by the blocks may occur in an order different from the order shown in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel and, depending on the related functions, can sometimes be executed in the reverse order. Also, each block of the block diagram and / or flowchart, as well as combinations of the blocks of the block diagram and / or flowchart, may be realized by a dedicated hardware - based system for performing a predetermined function or operation, or may be realized by a combination of dedicated hardware and computer instructions.

[0040] In addition, each functional module in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

[0041] When the above functions are realized in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention can essentially or the part that contributes to the prior art or the part of the technical solution can be represented in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of commands to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes the following: various media that can store program codes such as USB disks, removable disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0042] Inspired by the preferred embodiments of the present invention described above, those skilled in the art can make various changes and modifications without departing from the technical idea of the present invention from the above description. The technical scope of the present invention is not limited to the content of the specification, and the technical scope must be determined based on the scope of the claims.

Claims

1. A method for constructing a third-party library for a software platform, which is executed by a computer device under software control, the method comprising: constructing the third-party library by the software platform, i.e., constructing an initialization sub-module, a capability acquisition sub-module, and an internal sub-module in the third-party library by the software platform, and constructing a release sub-module in the third-party library, wherein the release sub-module automatically releases resources applied by the third-party library when the third-party library is unloaded, characterized in that it is a method for constructing a third-party library for a software platform, which is executed by a computer device under software control.

2. Constructing the initialization sub-module by the software platform comprises: generating the initialization sub-module by a header file of the software platform and an API list of the software platform within the software platform, and after the call of the initialization sub-module is completed, the third-party library obtains the address information of each API in the API list provided by the software platform, characterized in that it is a method for constructing a third-party library for a software platform according to claim 1.

3. Constructing the capability acquisition sub-module by the software platform comprises: the software platform loads the version number of the software platform, loads a list of user logic callback sub-modules to generate the capability acquisition sub-module, and when an external program calls the capability acquisition sub-module, the third-party library obtains the version information of the software platform corresponding to the third-party library, obtains the list information of the user logic callback sub-modules, and obtains all internal sub-module information of the third-party library, characterized in that it is a method for constructing a third-party library for a software platform according to claim 2.

4. Constructing the internal sub-module by the software platform includes generating the internal sub-module based on the user function logic sub-module of the software platform. A method for constructing a third-party library for a software platform according to claim 3, characterized in that.

5. The software platform includes a header file, a software platform API list, a software platform version number, a list of user logic callback sub-modules, and user function logic sub-modules. A method for constructing a third-party library for a software platform according to any one of claims 1 to 4, characterized in that.

6. A construction module for constructing a third-party library by a software platform, and a verification module for verifying the legality of whether the third-party library meets the requirements of the software platform, wherein the construction module constructs an initialization sub-module, a capability acquisition sub-module, an internal sub-module, and a release sub-module in the third-party library, and the release sub-module automatically releases resources applied by the third-party library when the third-party library is unloaded.

7. A computer-readable storage medium storing computer-readable instructions, which when executed by at least one processor, cause the method for constructing a third-party library according to any one of claims 1 to 4 to be executed.

8. A program used to cause a computer to execute the method for constructing a third-party library according to any one of claims 1 to 4, characterized in that.

9. A computer-readable storage medium storing computer-readable instructions, which when executed by at least one processor, cause a method for disassembling and calling a third-party library function for a software platform to be executed. The disassembly call method includes constructing a third-party library, and verifying the legality of whether the third-party library meets the requirements of the software platform. including calling the third - party library; building the third - party library includes: building the third - party library by the software platform, that is, building an initialization sub - module, a capability acquisition sub - module, and an internal sub - module in the third - party library by the software platform, and building a release sub - module in the third - party library; when the third - party library is unloaded, the release sub - module automatically releases the resources applied by the third - party library; verifying the legality of whether the third - party library meets the requirements of the software platform includes: loading the third - party library into the software platform, the software platform calls the initialization sub - module of the third - party library, the software platform calls the capability acquisition sub - module of the third - party library to obtain the version number of the software platform corresponding to the third - party library and a list of user callback sub - modules, and obtain the address information and function parameter information of all internal sub - modules of the third - party library; the software platform compares the obtained version number of the software platform corresponding to the third - party library with its own version number. If the version number of the third - party library is greater than its own version number, the call of the third - party library is stopped; otherwise, the third - party library continues to be called. A computer - readable storage medium characterized by the above - mentioned.

10. building the initialization sub - module by the software platform includes: Automatically generating an initialization sub-module by means of a header file of the software platform and an API list of the software platform within the software platform, and after the call of the initialization sub-module is completed, the third-party library obtaining address information of each API in the API list provided by the software platform. A computer-readable storage medium according to claim 9, characterized by including the above.

11. Constructing a capability acquisition sub-module by means of the software platform includes: The software platform loading its own version number and a list of user logic callback sub-modules to generate the capability acquisition sub-module, and when an external program calls the capability acquisition sub-module, obtaining the version information of the software platform corresponding to the third-party library, the list information of the user logic callback sub-modules, and all internal sub-module information of the third-party library. A computer-readable storage medium according to claim 10, characterized by including the above.

12. Calling the third-party library includes: After the software platform continuously calls the third-party library, calling the third-party library based on the list of user callback sub-modules and the list of internal sub-modules obtained from the third-party library, and After the call is completed, releasing the resources applied for by calling the release sub-module in the third-party library. A computer-readable storage medium according to claim 11, characterized by including the above.

13. The software platform includes: A computer-readable storage medium according to any one of claims 9 to 12, characterized by including a header file of the platform, an API list of the software platform, a version number of the software platform, a list of user logic callback sub-modules, and a user function logic sub-module.

14. A program used to cause a computer to execute a method for disassembling and calling a third-party library function for a software platform. The above disassembly calling method includes: constructing a third-party library; verifying the legitimacy of whether the third-party library meets the requirements of the software platform; calling the third-party library, wherein the method of constructing the third-party library is: constructing the third-party library by the software platform, that is, constructing an initialization sub-module, an ability acquisition sub-module, and an internal sub-module in the third-party library by the software platform, and constructing a release sub-module in the third-party library; when the third-party library is unloaded, the release sub-module automatically releases the resources applied by the third-party library; verifying the legitimacy of whether the third-party library meets the requirements of the software platform includes: loading the third-party library into the software platform, the software platform calling the initialization sub-module of the third-party library, the software platform calling the ability acquisition sub-module of the third-party library to obtain the version number of the software platform corresponding to the third-party library and the list of user callback sub-modules, and obtaining the address information and function parameter information of all the internal sub-modules of the third-party library; the software platform compares the obtained version number of the software platform corresponding to the third-party library with its own version number. If the version number of the third-party library is greater than its own version number, the call to the third-party library is stopped; otherwise, the call to the third-party library continues. A program characterized by the above.

15. Constructing an initialization sub-module by the software platform includes: Automatically generating an initialization sub-module by a header file of the software platform and an API list of the software platform within the software platform, and after the call of the initialization sub-module is completed, the third-party library obtaining address information of each API in the API list provided by the software platform. The program according to claim 14, characterized by including the above.

16. Constructing a capability acquisition sub-module by the software platform means that the software platform loads its own version number and a list of user logic callback sub-modules to generate the capability acquisition sub-module, and when an external program calls the capability acquisition sub-module, the software platform corresponding to the third-party library obtains version information, list information of the user logic callback sub-modules, and all internal sub-module information of the third-party library. The program according to claim 14, characterized by including the above.