Method and apparatus for calling dynamic library and dynamic library server

A dynamic library and server technology, applied in the field of operating system, can solve the problems of recompiling the dynamic library and the program cannot run normally, and achieve the effect of improving portability

Inactive Publication Date: 2007-08-22
HUAWEI TECH CO LTD
View PDF0 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Sometimes even when the main program is based on a different version of the operating system or compiler, it may be necessary to recompile the dynamic library
Moreover, if a main program under Windows is to be ported to Unix, its corresponding dynamic library must also be ported at the same time, otherwise the program will not run normally, and vice versa

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 apparatus for calling dynamic library and dynamic library server
  • Method and apparatus for calling dynamic library and dynamic library server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Embodiments of the present invention carry out the call of the main program to the dynamic library through the dynamic library server, and adopt the message mechanism to transmit parameters and data between the main program and the dynamic library server, so that the error of the dynamic library can only affect the dynamic library server, and The main program only obtains the error message in the response message, which does not affect the operation of the main program; on the other hand, the embodiments of the present invention allow the main program and the dynamic library server to be arranged on different computers based on different operating systems, thereby improving The portability of the dynamic library is improved; moreover, when the main program is transplanted to other systems for execution, it is not necessary to transplant all the dynamic libraries, thereby reducing the time for product transplantation.

[0024] In order to make the object, technical soluti...

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 a method for calling a dynamic library, including: the main program sends a request for DLL functions to the DLL server, and described request carries the parameters for calling the functions. The DLL server calls the functions according to the parameters and returns the functions' result to the main program via the response news. The invention also discloses a device for calling a dynamic library, including: a main program module is used to send requests for calling the DLL function, and a DLL server is used to call the functions according to the parameters and return the functions' results to the main program via the response news, and a DLL module is used to run functions according to the DLL server and submit the results of functions.

Description

technical field [0001] The invention relates to the field of operating systems, in particular to a method, a device and a dynamic library server for calling a dynamic library. Background technique [0002] As an essential part of the operating system structure, the dynamic library is used to decompose a complex program into multiple different parts and provide them to different developers / manufacturers to complete. [0003] At present, the way to call the dynamic library is usually to put the dynamic library and the executable program on the same computer, link when compiling the executable program, or load the specified file when the executable program is running, so that the executable program can call the dynamic library The function of one or more functions in . Regardless of the way of linking or dynamic loading, the dynamic library is loaded into a certain address space of the executable program as a part of the executable program, and called like a local function. ...

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/48
CPCG06F9/4425G06F9/4484
Inventor 梁震谢春风邓庆锋汪竞骆卫宝柯小川刘陈明
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products