home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
windr440.zip
/
windrive.zip
/
WinDriver
/
v3
/
files.txt
Wrap
File List
|
2000-03-30
|
2KB
|
48 lines
The source code for this project was generated by WinDriver Wizard.
To compile this application, you will need a Win32 compiler.
Files:
lib directory:
lib\pbclib.c
Library for 'WinDriver for V3 PBC' API.
The basic idea is to get a handle for the board
with V3PBC_Open() and use it in the rest of the program
when calling V3PBC_xxxx() functions. Call V3PBC_Close() when done.
lib\pbclib.h
Header file of pbclib.c library.
pbc_diag directory:
pbc_diag\pbc_diag.c
A simple diagnostics program that lets you access the
V3 PBC registers and local memory.
This program is meant to be used as an example for using the
pbclib.h API.
You may use it as a skeleton for your driver, or 'cut & paste'
parts of it into your device driver code.
pbc_diag\pbc_diag.mak
MS-Visual C++ 4.0 (and above) compatible make file.
pbc_diag\pbc_diag.mdp
MS-Visual C++ 4.0 (and above) compatible project file.
files.txt
Describes the files generated.
Compiling this project:
If you are using MS-Visual C++, then open the pbc_diag.mdp project file, and
compile.
If using a different compiler:
- Create a new project. Choose console mode project.
- Include the following files in the project:
lib\pbclib.c
pbc_diag\pbc_diag.c
\windrvr\samples\shared\pci_diag_lib.c
\windrvr\samples\shared\print_struct.c
Converting to a GUI application:
This sample was written as a console mode application (rather than
a GUI application) that uses standard input and standard output.
This was done in order to simplify the source code. You may change it
into a GUI application by removing all calls to printf() and scanf()
functions, and calling MessageBox() instead.