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

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 development teams. The workload and difficulty of avoiding resource ID conflicts by means of methods is unimaginable, and it is also extremely inconsistent with software engineering development ideas, so it is an undesirable method

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

Embodiment 1

[0029] In this embodiment, the platform is a Windows application program (EXE), the components are regular DLLs or extended DLLs, and the component resources are menus and dialog boxes. XTP (XTREMETOOLKIT PRO v12.1.1 version) 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 into the CXTPControl class. CXTPControl is a control for each menu. Define an attribute set, these attributes record the ID value of the menu, and add the "component name" attribute on this basis. The plug-and-play method for automatic resolution of Windows resource conflicts provided by the invention is used to realize complete dynamic loading of regular DLLs; dynamic loading of menu resources and routing methods for menu commands; automatic conflict resolution methods for dialog box resources. The detailed process of this embodiment is:

[0030] Such as image 3 In the class structure ...

Embodiment 2

[0046] In this embodiment, the platform is a Windows application program (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, with differences in the following two specific steps, and other steps are the same or similar to Embodiment 1.

[0047] File configuration:

[0048] Prepare a configuration file to record the name of the COM component to be loaded, 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 implementation object class GUID of the interface is different, so the platform can accurately distinguish these interfaces.

[0049] Component loading, dynamically loading COM components:

[0050] CMainFrame reads the configuration file to obtain the name of the COM component, and obtains the smart pointer of the ...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products