www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Device driver DLLs

reply "Paul C Elliott" <paul.elliotts btinternet.com> writes:
I just got the CD and still can't believe something like this can run
without an installation and half your registry altered. It does thankfully,
one day maybe all apps will work this way ..... (come to think of it even
ZTC and Zorland used an install for DOS)

Anyway on to the question: I'm trying to port some low level stuff using
interrupts and direct hardware writes from DOS (originally in ZTC 2/3), I
understand to work in NT/2K you have to produce a driver/dll to allow access
to the hardware in supervisor mode. I did look into this with VCC++ and it
required various SDKs and a lot of time to implement half a dozen outpw
statements. Is there an easier way with dmc, can I use the MS SDKs with dmc?
Thanks in advance,
                            Paul
Dec 22 2002
parent reply "Walter" <walter digitalmars.com> writes:
"Paul C Elliott" <paul.elliotts btinternet.com> wrote in message
news:au5e2p$1t34$1 digitaldaemon.com...
 I just got the CD and still can't believe something like this can run
 without an installation and half your registry altered. It does
thankfully,
 one day maybe all apps will work this way ..... (come to think of it even
 ZTC and Zorland used an install for DOS)
The reason ZTC did it was because in the bad old days when software came on floppy disks, it was all compressed. Doing the unpack and sort into the right directories was a nuisance, so automating that with an install made sense. But these days, everything fits cleanly on a single CD, so no install is necessary.
 Anyway on to the question: I'm trying to port some low level stuff using
 interrupts and direct hardware writes from DOS (originally in ZTC 2/3), I
 understand to work in NT/2K you have to produce a driver/dll to allow
access
 to the hardware in supervisor mode. I did look into this with VCC++ and it
 required various SDKs and a lot of time to implement half a dozen outpw
 statements. Is there an easier way with dmc, can I use the MS SDKs with
dmc? You can probably use MS SDK's, but there will inevitably be one thing or another that needs a little hand adapting.
Dec 22 2002
parent "Paul C Elliott" <paul.elliotts btinternet.com> writes:
Walter,
            Thanks for the information I'll have a go, probably after the
festive season, and let you know how I got on .
Paul

"Walter" <walter digitalmars.com> wrote in message
news:au6929$2f48$1 digitaldaemon.com...
 "Paul C Elliott" <paul.elliotts btinternet.com> wrote in message
 news:au5e2p$1t34$1 digitaldaemon.com...
 I just got the CD and still can't believe something like this can run
 without an installation and half your registry altered. It does
thankfully,
 one day maybe all apps will work this way ..... (come to think of it
even
 ZTC and Zorland used an install for DOS)
The reason ZTC did it was because in the bad old days when software came
on
 floppy disks, it was all compressed. Doing the unpack and sort into the
 right directories was a nuisance, so automating that with an install made
 sense.

 But these days, everything fits cleanly on a single CD, so no install is
 necessary.


 Anyway on to the question: I'm trying to port some low level stuff using
 interrupts and direct hardware writes from DOS (originally in ZTC 2/3),
I
 understand to work in NT/2K you have to produce a driver/dll to allow
access
 to the hardware in supervisor mode. I did look into this with VCC++ and
it
 required various SDKs and a lot of time to implement half a dozen outpw
 statements. Is there an easier way with dmc, can I use the MS SDKs with
dmc? You can probably use MS SDK's, but there will inevitably be one thing or another that needs a little hand adapting.
Dec 24 2002