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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com