Plug and play method of member, application and system thereof

A plug-and-play, component technology, applied in program control devices and other directions, can solve problems such as inadvisability, unimaginable workload and difficulty, and inconsistency with software engineering development ideas, and achieve the effect of resolving resource conflicts and resolving ID conflicts.

Inactive Publication Date: 2010-02-03
李元 +1
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is almost impossible to specify the range of resource ID values ​​for each component, because in the actual development of the project, component developers are often scattered in different fields, different regions, and different

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
  • Plug and play method of member, application and system thereof
  • Plug and play method of member, application and system thereof
  • Plug and play method of member, application and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] Example 1

[0029] In this embodiment, the platform is a Windows application (EXE), the components are regular DLLs or extended DLLs, and the component resources are menus and dialog boxes respectively. XTP (XTREMETOOLKIT PRO v12.1.1) is an interface management suite. The basic idea is to treat each menu and toolbar button as a control (Control), and all its properties and operations are encapsulated as CXTPControl class, CXTPControl is for each menu. Define a set of properties, these properties record the ID value of the menu, and add the "component name" property on this basis. The plug-and-play method for automatically resolving Windows resource conflicts provided by the present invention realizes complete dynamic loading of regular DLLs; dynamic loading of menu resources and menu command routing methods; and automatic conflict resolution methods for dialog resources. The detailed process of this embodiment is:

[0030] like image 3 In the class structure diagram o...

Example Embodiment

[0045] Example 2

[0046] In this embodiment, the platform is a Windows application (EXE), and the component is a COM component. The method and process used in this embodiment are basically the same as those in Embodiment 1, and there are differences in the following two specific steps, and other steps are the same as or similar to those in Embodiment 1.

[0047] File configuration:

[0048] Prepare a configuration file to record the name of the COM component to be loaded and the COM object interface and its GUID (for example, the interface name is IJoint, and its GUID is 25AB3BA1-58D0-40b9-ADD1-C604DA47FD27). Although different COM components have the same interface name (for example, IJoint), the GUID of the interface's implementation object class is different. Therefore, the platform can accurately distinguish these interfaces.

[0049] Component loading, which dynamically loads COM components:

[0050] CMainFrame reads the configuration file to obtain the COM component ...

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 plug and play method of a member. The method takes an IBP interconnection bottom plate with a design mode based on a template method as a basis, and comprises the following steps: file configuration, wherein configuration files are prepared to record the name of the member to be loaded and a member export function; member loading, wherein a platform reads the configuration files and calls a member loading function to dynamically load the member into a platform address space; member function mapping, wherein the member resource for interaction is dynamically loaded into the platform address space to complete dynamic mapping of member function on the platform; member function calling, wherein the member function is dynamically perceived and called; and member unloading, wherein the platform calls a member unloading function to dynamically unload the member. The system based on the plug and play method of the member comprises a file configuration module, a memberloading module, a member function mapping module, a member function calling module and a member unloading module. The method can realize dynamic calling of the member function and automatically eliminate Windows resource conflict.

Description

technical field [0001] The invention relates to the technical field of software system development, in particular to a component plug-and-play method and a method for automatically resolving Windows resource conflicts using the method. Background technique [0002] In the "platform + component" system architecture, an application system is composed of a platform and several components. The platform is responsible for loading components and completing corresponding scheduling and management tasks (including coordination between components and coordination between components and platforms). Coordination), while the component completes a specific function in a certain aspect. [0003] In this system architecture, components provide compiled program interfaces or properties. Its characteristic is that it is difficult to modify it. Usually, only information such as the interface and attributes of the component can be understood. It is implemented at the runtime level and can be ...

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): G06F9/44
Inventor 李元马亚平
Owner 李元
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