CN107544792A - A kind of method that dynamic link library based on VB realizes control computer peripheral hardware - Google Patents
A kind of method that dynamic link library based on VB realizes control computer peripheral hardware Download PDFInfo
- Publication number
- CN107544792A CN107544792A CN201610477500.3A CN201610477500A CN107544792A CN 107544792 A CN107544792 A CN 107544792A CN 201610477500 A CN201610477500 A CN 201610477500A CN 107544792 A CN107544792 A CN 107544792A
- Authority
- CN
- China
- Prior art keywords
- dynamic link
- link library
- control computer
- computer peripheral
- peripheral hardware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method that dynamic link library based on VB realizes control computer peripheral hardware, comprise the following steps:The first step, the engineering of dynamic link library is created in VC programming language environment, create source file and resource definition file;Second step, create the Implib of dynamic link library;3rd step, programming, compiling connection, file generated and copied files;4th step, function declaration is added in the engineering code module in VB programmed environments;5th step, call a function to realize the collection of project data in VB programmed environments.The method that the dynamic link library based on VB of the present invention realizes control computer peripheral hardware, reduce the technical requirements to project planner, so that as long as how project planner association creates dynamic link library in VC programming languages, then can carrys out development and application software using the VB programming languages being easy to learn and use, greatly reduce design difficulty, improve operating efficiency.
Description
Technical field
The present invention relates to a kind of method that dynamic link library based on VB realizes control computer peripheral hardware, belong to outside computer
Portion's equipment technical field.
Background technology
With the popularity of Windows operating system, project planner is one after another using computer programming languages such as VC, VB
Speech develops corresponding engineering software under Windows operating system.Often to be gathered in most of engineering software on external equipment
Data, if directly invoking the function of their own using VC programming language cans to read and write behaviour to computer peripheral equipment
Make, but VC programming languages relatively find it difficult to learn, it is just more difficult especially for the project planner of Non-computer Majors, so
The general VB programming languages for all selecting to be easy to learn and use carry out the development language as engineering software.But the one of VB programming languages maximum
Individual defect exactly can not directly read and write operation to external equipment, that is to say, that computer peripheral equipment is not read in VB,
The built-in function of write operation.It is therefore proposed that a kind of method that dynamic link library based on VB realizes control computer peripheral hardware, i.e., first exist
The function that operation is read and write to computer peripheral equipment is built up a dynamic link library in VC programmed environments;Called again in VB
Correlation function in the dynamic link library can realize the collection of project data in VB.Dynamic link library is one and includes function
Library file.Dynamic link library can be integrated into the program of oneself by programmer, then in a program can be with calling
Function in dynamic link library.So-called dynamic link is referred to when generating EXE files, not by dynamic link library file
It is linked in program, dynamic link library file simply just carries out dynamic link when program is run;And static linkage refers to
When generating EXE files, directly the function code of program reference is linked in the executable file of program.So, engineering
As long as how designer association creates dynamic link library in VC programming languages, then can is compiled using the VB being easy to learn and use
Cheng Yuyan carrys out development and application software, greatly reduces design difficulty, improves operating efficiency.
The content of the invention
(One)Technical problems to be solved
To solve the above problems, the present invention proposes the side that a kind of dynamic link library based on VB realizes control computer peripheral hardware
Method, by creating dynamic link library so that VB programming languages easy to learn can directly read and write behaviour to external equipment
Make, greatly reduce design difficulty, improve operating efficiency.
(Two)Technical scheme
The method that a kind of dynamic link library based on VB of the present invention realizes control computer peripheral hardware, comprises the following steps:
The first step, the engineering of dynamic link library is created in VC programming language environment, create source file and resource definition file;
Second step, create the Implib of dynamic link library;
3rd step, programming, compiling connection, file generated and copied files;
4th step, function declaration is added in the engineering code module in VB programmed environments;
5th step, call a function to realize the collection of project data in VB programmed environments.
Further, the dynamic link library file be located at Windows system directory WINDOW S SYSTEM, DOS
The catalogue where any catalogue or program pointed by middle path.
(Three)Beneficial effect
Compared with prior art, the method that the dynamic link library of the invention based on VB realizes control computer peripheral hardware, is reduced
To the technical requirements of project planner so that as long as how project planner association creates dynamic chain in VC programming languages
Storehouse is connect, then can carrys out development and application software using the VB programming languages being easy to learn and use, and greatly reduces design difficulty, improves
Operating efficiency.
Embodiment
The method that dynamic link library based on VB realizes control computer peripheral hardware, comprises the following steps:
The first step, the engineering of dynamic link library is created in VC programming language environment, create source file and resource definition file;
Second step, create the Implib of dynamic link library;
3rd step, programming, compiling connection, file generated and copied files;
4th step, function declaration is added in the engineering code module in VB programmed environments;
5th step, call a function to realize the collection of project data in VB programmed environments.
Further, the dynamic link library file be located at Windows system directory WINDOWS in SYSTEM, DOS
The catalogue where any catalogue or program pointed by path.
The above-described embodiments are merely illustrative of preferred embodiments of the present invention, not to the structure of the present invention
Think and scope is defined.On the premise of design concept of the present invention is not departed from, technology of the ordinary people in the field to the present invention
The all variations and modifications that scheme is made, all should drop into protection scope of the present invention, the claimed technology contents of the present invention,
All record in detail in the claims.
Claims (2)
1. a kind of method that dynamic link library based on VB realizes control computer peripheral hardware, it is characterised in that comprise the following steps:
The first step, the engineering of dynamic link library is created in VC programming language environment, create source file and resource definition file;
Second step, create the Implib of dynamic link library;
3rd step, programming, compiling connection, file generated and copied files;
4th step, function declaration is added in the engineering code module in VB programmed environments;
5th step, call a function to realize the collection of project data in VB programmed environments.
2. the method that a kind of dynamic link library based on VB according to claim 1 realizes control computer peripheral hardware, it is special
Sign is:The dynamic link library file be located at Windows system directory WINDOW S in SYSTEM, DOS path it is signified
Catalogue where any catalogue or program that go out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610477500.3A CN107544792A (en) | 2016-06-27 | 2016-06-27 | A kind of method that dynamic link library based on VB realizes control computer peripheral hardware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610477500.3A CN107544792A (en) | 2016-06-27 | 2016-06-27 | A kind of method that dynamic link library based on VB realizes control computer peripheral hardware |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107544792A true CN107544792A (en) | 2018-01-05 |
Family
ID=60961381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610477500.3A Pending CN107544792A (en) | 2016-06-27 | 2016-06-27 | A kind of method that dynamic link library based on VB realizes control computer peripheral hardware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107544792A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112631684A (en) * | 2020-12-30 | 2021-04-09 | 北京元心科技有限公司 | Executable program running method and device, electronic equipment and computer storage medium |
-
2016
- 2016-06-27 CN CN201610477500.3A patent/CN107544792A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112631684A (en) * | 2020-12-30 | 2021-04-09 | 北京元心科技有限公司 | Executable program running method and device, electronic equipment and computer storage medium |
CN112631684B (en) * | 2020-12-30 | 2021-08-06 | 北京元心科技有限公司 | Executable program running method and device, electronic equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Deitel | Java how to program | |
US8141036B2 (en) | Customized annotation editing | |
Xia et al. | Leveraging single-user applications for multi-user collaboration: the coword approach | |
US7281248B2 (en) | Virtualized and realized user interface controls | |
RU2638727C2 (en) | Method and device for starting external application in browser | |
EP3350696B1 (en) | Overriding a migrated method of an updated type | |
CN107526625B (en) | Java intelligent contract security detection method based on bytecode inspection | |
EP3971706B1 (en) | Method, apparatus and electronic device for deploying operator in deep learning frame work | |
US10061575B2 (en) | Managed execution environment for software application interfacing | |
US7363578B2 (en) | Method and apparatus for mapping a data model to a user interface model | |
WO2021258692A1 (en) | Multi-chip compatible compiling method and device | |
US20120179987A1 (en) | Computationally Efficient System for Developing Configurable, Extensible Gul for Database Centric Enterprise Business Applications | |
Popp et al. | Tool support for automated multi-device GUI generation from discourse-based communication models | |
US7890930B2 (en) | Method and system for allowing an eclipse feature to create/remove/update program groups and shortcuts, via an eclipse install handler | |
Mackey | Introducing. NET 4.0: With Visual Studio 2010 | |
CN109670299A (en) | A kind of method and electronic equipment creating Python sandbox environment | |
Mikkonen | Programming mobile devices: an introduction for practitioners | |
CN107544792A (en) | A kind of method that dynamic link library based on VB realizes control computer peripheral hardware | |
CN108376074B (en) | RancherOS ros core module transplanting method based on embedded system | |
CN113177292B (en) | Universal BIM secondary development implementation method and device | |
Deitel et al. | Java SE 8 for programmers | |
CN106815003A (en) | The interactive system and exchange method of a kind of computer language | |
CN111857710A (en) | Method and device for developing Eclipse plug-in based on embedded chromium | |
Bilgin | Hands-on Mobile Development with. NET Core: Build Cross-platform Mobile Applications with Xamarin, Visual Studio 2019, and. NET Core 3 | |
Zhou et al. | Implementation of G Language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180105 |
|
WD01 | Invention patent application deemed withdrawn after publication |