Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application program development method based on dynamic loading component

An application development and dynamic loading technology, applied in model-driven code, software deployment, software maintenance/management, etc., can solve problems such as inability to remove resources, troublesome calls, inability to run or maintain, and achieve development efficiency. Effect

Pending Publication Date: 2019-11-26
深圳市七星石科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. The dynamic library interface is not fixed. Often with the addition and deletion of functions, the interface of the dynamic library needs to be recompiled, and the place where the dynamic library is called also needs to be recompiled and modified. The coupling of the system to it is too large. It takes a lot of time.
[0007] 2. A dynamic library represents an independent function, but resource images, configuration files, etc. still depend on the main program or global environment variables. When removing a function, resources cannot be removed, resulting in useless resources still occupying space .
[0008] 3. The diversity of dynamic library interfaces makes it very troublesome to call, and different parameters need to be provided for different dynamic libraries, which is prone to errors.
[0009] 4. A function or small program cannot be dynamically loaded, because the dynamic library can only be placed in a fixed location in the installation directory, and the required resource images cannot be run or maintained because there is no standardized storage location

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application program development method based on dynamic loading component
  • Application program development method based on dynamic loading component
  • Application program development method based on dynamic loading component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] A kind of application program development method based on dynamic loading component of the present invention, this application program development method comprises the following steps:

[0058] Step 1, create components;

[0059] Create at least one component, the component has multiple core parts, and the core part of the component is divided into 3 parts;

[0060] The first part, component configuration information file: stores component information→component type→library file path→component ID→component version→created command identifier executed after component loading→command array identifier received by the component and command array sent by the component;

[0061] The second part, component library file: dynamic library file→component logic is compiled into a dynamic library. This dynamic library only exports a component export function interface. After the component library file is loaded, this interface will be called to initialize the component;

[0062] The...

Embodiment 2

[0083] Embodiment 2: In order to illustrate the embodiment of the present invention more clearly, the present invention uses VisualStudio to establish a desktop application program project on the Windows platform.

[0084] Please refer to the attached figure 1 , Create a new platform project. After the platform is running, it first loads, initializes, disables, and uninstalls components such as component management. Another important thing is the control and forwarding of messages between components.

[0085] Please refer to the attached figure 2 , the component loading process, S10 first searches the component directory, reads the component configuration information file to store the component configuration information, id, version, path, send command, receive command, type; S11 finds the component package location, and then passes the component configuration path Find the logical dynamic library file of the component and load the dynamic library; after the component dynami...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an application program development method based on a dynamic loading component, and relates to an installation folder resource layout of software, a component under a specifieddirectory is loaded when the software is started, and the component is operated after the software is started so as to complete a software function target model and system. Based on the system, the component can be dynamically loaded (i.e., the component can be loaded in a specified directory after software runs); the software can be conveniently added with small functions or updated subassemblies during subsequent updating, so that the overall influence on the software is reduced to the minimum, the assemblies are independent in project, and can be developed by multiple persons for respective assembly, independent operation and unit test, so that the software development speed is increased, and the software quality is improved. An application program developed by using the development model and system can be composed of components.

Description

technical field [0001] The invention relates to an application program component development model, in particular to an application program development method based on dynamic loading components. Background technique [0002] The conventional application development model is under one project, and software developers add and modify functions under this project at the same time. This development model makes it easy for multiple people to edit a function at the same time when developing a project, causing conflicts. When a function fails, the huge project code will make it difficult to locate the problem, and there may be problems in the bottom layer, interface or storage. When there is a problem, we can only go back layer by layer to find the problem, which is a waste of time. Fixing a certain problem can easily lead to problems in related parts. Since there are many functions related to the project, it is impossible to test only one function. and run. [0003] When develop...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/35G06F8/61G06F8/71
CPCG06F8/35G06F8/61G06F8/71
Inventor 戴辉邓波陈顺妮
Owner 深圳市七星石科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products