Главная страница | назад

Article #15758: Building a DOS device driver with BC++ 5.0

 Question and Answer Database

FAQ758C.txt   Building a DOS device driver with BC++ 5.0
Category   :C/C++ Language Issues
Platform    :DOS
Product    :   BC++5.x


Can I build a DOS device driver with the tools that come 
with BC++ 5.0 or TASM 5.0? I get an error at link
Fatal : No program entry point


Yes this is possible but you should use tlink.exe from
BC++ 4.52. The attached test case builds a driver from
an ASM file.

< from the readme.txt in the attached file SYSTEST.ZIP >

This set of files produces a SYS file ( a 16 bit DOS device
driver ) that simply displays a message indicating success
upon loading.

the included batch file BUILDSYS.BAT does the
necessary steps for you:
assemble the ASM file         TASM
link the obj                  TLINK
convert EXE to binary image   EXE2BIN
rename  BIN to SYS

to test the DOS device driver add a line
to CONFIG.SYS on a system running DOS


NOTE: due to a bug in the tlink.exe that comes
with 5.x products ( both TASM and BC++ ) this
test case includes TLINK.EXE from BC++ 4.52.
The bug is that no entry point is generated
as a Fatal error when it should be a warning.

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99