Article View: borland.public.cppbuilder.nativeapi
Article #1365Re: How to deal with DDK header files not included in Builder 2007 ?
From: Ed Mulroy [TeamB]
Date: Tue, 04 Sep 2007 15:08
Date: Tue, 04 Sep 2007 15:08
35 lines
3134 bytes
3134 bytes
I did it for the sole purpose of proving to myself that I could. A third party (VMWare?) used to sell a device driver development kit for use with Borland's compilers. When I finally broke down and decided to spend some money and buy it I found that they no longer supported Borland's compilers. I was trying to demonstrate to myself that I could do it without their help. I used C++ but deliberately did not use exception handling, runtime type id or the STL. I also used some assembly language (separate *.asm file). I think that at least some assembly is required for any practical device driver. It has been a while since I did it. The disk on which it was located crashed so I am operating from pure memory in describing what I did and cannot show a copy of it. . Ed > David M wrote in message > news:46dcfd29@newsgroups.borland.com... > > FYI, I just tried these switches in BDS2006's ilink32 and it happily > accepts them. I've never tried building a driver with BCC though. I > would love to see this as an official feature though, even if just for the > bragging rights (it's not a real compiler until you can use it for a > kernel driver!) > > At least with MS tools it is technically possible to write a driver using > C++, but it's a bit dodgy because of what areas the compiler / linker > places particular bits of code in. It's been a long time since I wrote a > device driver, and I never researched this much since I only ever used C, > but I gather it was to do with some its of code being placed in sections > that were loaded by the kernel into swappable memory by default... or > something... that makes sense as a potential problem though if you > expected your code to be able to run at any IRQL! Ed, when you used BCB > did you use C or C++?
Technical Details
Message-ID:
<46dd7501$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!82.197.223.104.MISMATCH!feeder4.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46d05592@newsgroups.borland.com> <46d073e6$1@newsgroups.borland.com> <46d07a66$1@newsgroups.borland.com> <46d0901d$1@newsgroups.borland.com> <46d0a754@newsgroups.borland.com> <46dcfd29@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e9c910c4ee30f0b3 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <46d05592@newsgroups.borland.com> <46d073e6$1@newsgroups.borland.com> <46d07a66$1@newsgroups.borland.com> <46d0901d$1@newsgroups.borland.com> <46d0a754@newsgroups.borland.com> <46dcfd29@newsgroups.borland.com> Subject: Re: How to deal with DDK header files not included in Builder 2007 ? Date: Tue, 4 Sep 2007 11:08:43 -0400 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 66.57.114.44 Message-ID: <46dd7501$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188918529 66.57.114.44 (4 Sep 2007 08:08:49 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!82.197.223.104.MISMATCH!feeder4.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail