KingView Driver Development Toolkit
User’s Manual
Beijing Asiacontrol technology development CO.LTD
No. 1
Contents
1. Copyright .............................................................. 2
2. General description .................................................... 2
3. Kit 3.0 modifying explanation .......................................... 2
4. How to use the toolkit ................................................. 2
5. Project convert tool ................................................... 7
6. Driver information structures .......................................... 8
7. Interface functions ................................................... 15
7.1 Interface description............................................. 15
7.2 How to call interface functions................................... 21
7.2.1. Development environment .................................... 21
7.2.2. Running environment ........................................ 25
8 Program Structure ...................................................... 27
8.1 The project class (CPro).......................................... 28
8.2 The device class (CDev)........................................... 29
8.3 The communication class (CCom).................................... 37
8.3.1 CSerialCom .................................................. 37
8.4 The debug message class (CDebug).................................. 39
We provide the following message flags now:........................... 40
8.5 The helper function class (CHelper)............................... 43
8.6 The data check functions class (CCheck)........................... 52
9. Error status codes .................................................... 55
10.How to use “devlst.dat” file ........................................ 59
11.The last submit files ................................................. 61
1
No. 2
1. Copyright
Beijing Asiacontrol technology development CO.,LTD (Asiacontrol for
short
) is the copyright holder of the KingView Driver development Toolkit.
No part of this kit shall be reproduced, or transmitted by any means without
the prior written permission of AsiaControl Company. Organizations, groups
or individual who have bought the kit are only allowed using it and not
offering third party.
2. General description
The kit uses Microsoft standard COM component technology. So you can
create independent objects having own variables when building the interface.
When develop finished, we get just a DLL file. All functions in it are
called by the two KingView applications - TouchExplorer.exe and TouchVew.exe.
If the two applications don’t start, all functions will never be executed.
KingView driver is the bridge of KingView and devices. The kit is used
to develop KingView driver. As long as having the communication protocol of
devices, you may develop KingView driver by the kit.
When developing, Only allowed to use Visual Studio C++ .
3. Kit 3.0 modifying explanation
a) General and embedded versions are united to a set of codes for
synchronous update.
b) Generate the device class to provide the solution of drivers of
different types devices.
c) Detailed, strong and stable code of basic class.
d) Perfect function and Wizard.
e) Standard help functions.
f) Standard code formant and uniform English versions.
g) Modify some realize methods.
4. How to use the toolkit
We provide a wizard tool “DriverToolKit3.0.0.0.exe” in which you can
create a driver framework rapidly.
When you first using the kit wizard, you should install the tool as
following,
2
No. 3
the second page allow you to choose the folder in which to install,
Click “Install” you will Successfully finished the install.
The following steps will help you create a driver project using the
kit wizard.
3
No. 4
(1) Start Visual Studio.NET 2003
(2) Create a new project. Select VisualC++ project and “KingView Wizard”
then input a valid project name, click “OK”.
(3) The first page of the Wizard is “summary” containing some default
items. If you don’t want to change it, click “OK” to create project
directly.
( 4 ) The second page is “Driver Type and Compile Items” which has the
following:
4
- 1
- 2
- 3
- 4
- 5
- 6
前往页