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

Method and device for adding parameters in published program

A technology of parameters and programs, which is applied in the computer field, can solve problems such as the cumbersome program modification process, and achieve the effect of solving the cumbersome modification process and saving the release process

Pending Publication Date: 2021-12-07
武汉斗鱼鱼乐网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method and device for adding parameters in a released program, so as to solve the problem that the modification process of the program is relatively cumbersome when the program is slightly changed in the prior art

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
  • Method and device for adding parameters in published program
  • Method and device for adding parameters in published program
  • Method and device for adding parameters in published program

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0054] refer to figure 1 , figure 1 It is a schematic flowchart of a method for adding parameters in a released program in an embodiment of the present invention.

[0055] In this embodiment, the method for adding parameters in the published program is applied to the client, and the method includes:

[0056] Step S10: Obtain target parameter information from the associated service program.

[0057] The purpose of this step is to obtain the target parameter information sent by the server at any time through the service program.

[0058] The execution subject of this embodiment is the client, the client program of the client is a published program, and the service program is a group of programs compiled to provide service means for users to maintain and use computers. In order to assist the client to receive data at any time, a windows service program associated with the client is created through the system API. The service program is released together with the client program...

no. 2 example

[0113] Based on the same inventive idea, such as figure 2 As shown, the embodiment of the present invention also provides a device for adding parameters in a published program, including:

[0114] An information acquisition module 10, configured to acquire target parameter information from an associated service program;

[0115] The positioning module 20 is configured to extract the target parameter and the data type of the target parameter from the target parameter information, and obtain the first address in memory of the target function to which the target parameter belongs according to the target parameter information;

[0116] The first allocation module 30 is configured to obtain the data size of the target parameter according to the data type, and allocate a corresponding size of data memory space for the target parameter according to the data size;

[0117] The second allocation module 40 is configured to allocate a piece of code memory space corresponding to the dat...

no. 3 example

[0131] Based on the same inventive idea, such as image 3 As shown, the embodiment of the present invention also provides a computer-readable storage medium 300, on which a computer program 311 is stored, and when the program 311 is executed by a processor, the following steps are implemented:

[0132] Acquiring the target parameter information from the associated service program; extracting the target parameter and the data type of the target parameter from the target parameter information, and obtaining the target function in memory to which the target parameter belongs according to the target parameter information The first address; obtain the data size of the target parameter according to the data type, and allocate a corresponding size of data memory space for the target parameter according to the data size; allocate a section of code memory space corresponding to the data memory space , and set the attribute of the code memory space to PAGE_EXECUTE_READWRITE; read the as...

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 relates to the technical field of computers, in particular to a method and device for adding parameters in a published program, and the method comprises the steps: obtaining target parameter information from an associated service program; obtaining a first address of a target function to which the target parameter belongs in a memory; reading an assembly code of the to-be-modified parameter from the memory according to the first address, and copying the assembly code to a code memory space; copying the to-be-modified parameters to the data memory space, and adding target parameters in the to-be-modified parameters in the data memory space; and modifying the assembly code in the memory into a jump instruction skipping to the code memory space. The data sent by the server at any moment is received through the service program, the target parameter information can be sent to the published client in time, the target parameter can be quickly added at the specific position of the client program according to the target parameter information, the client version does not need to be published, and the publishing process of the whole parameter adding function is greatly saved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for adding parameters in published programs. Background technique [0002] At present, when developing software programs in the windows system, sometimes some particularly urgent needs need to be added to the released program, and the parameter can be a certain data or a certain field. For example, on our live broadcast platform, we want to classify on-demand programs. There are two types of on-demand programs, one is on-demand, and the other is a newly developed new function: the short video function of the discovery page. Since both belong to on-demand programs, the server Can't make a distinction. Therefore, it is necessary to add a field to the client to tell the server whether it is an on-demand or short video function of the discovery page. [0003] For adding a parameter, the traditional solution is to reopen the program, re-release the new program ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44557
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