Can WDK support new operator

Or if you are implementing KMDF, but I digress…

Mark Roddy

On Mon, Mar 2, 2009 at 10:17 PM, HenryKind wrote:
> Generally, the only type of driver you may use c++ to write is the AVStream
> Driver, the driver that interacts with MS Kernel Streaming Framework.
>
>
> On Mon, Mar 2, 2009 at 11:25 AM, wrote:
>>
>> I want to know if WDK support “new” and “delete” operator?
>> I found my driver code with “new” operator cannot be compiled
>> successfully.
>> but “new” can be used in driverstudio tool? why?
>>
>> I found a article wrote by Microsoft, which said MS don’t advise driver
>> engineer use C++ to write driver,especially the “new” operator.
>>
>> thanks
>>
>> Denny
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
> List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

You wrote:

Generally, the only type of driver you may use c++ to write is the
AVStream Driver, the driver that interacts with MS Kernel
Streaming Framework.

This advice is rather misleading. There’s nothing special about AVStream drivers. They are just like any other WDM driver. The only thing different about them is that the SAMPLES are already written in C++. This is also true of many of the audio samples.

In fact, one could treat the AVStream samples as a guide for how to write kernel drivers in C++.

Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

It doesn’t matter :wink:

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, March 03, 2009 12:17 AM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Can WDK support new operator

One drink per bug or one drink per mention :slight_smile: ?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Monday, March 02, 2009 3:17 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Can WDK support new operator

Don Burn wrote:

> And I suspect you do not want to waste the time to do that,
> since the last time I looked DriverStudio was producing over
> 1000 significant errors by PreFast (and that was with a PreFast
> before the full annotations were supported)! It really is a piece
> of crap.

Every time DB says DriverStudio has 1,000 errors in PREfast,
you have to take a drink.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online
at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online
at http://www.osronline.com/page.cfm?name=ListServer

This IS the thread that won’t die, isn’t it?

Peter
OSR

Uh oh … the golden days of programming … Mother Fletcher’s Card
Mulchers, Truman preceeded Eisenhower, my dad’s station sold gas for $.25 a
gallon, hard disks were the size of washing machines and only held 10 Meg
per platter. Hmmm, actually, at the time gas was .25, hard disks, if they
existed, were solid steel, could be used as the gyros for a submarine, and
were measured in kilo-bytes. Code was written in assembly or FORTRAN (ugh)
or COBOL (double ughh).

But you, Walter, tend to be an exception. :slight_smile:


The personal opinion of
Gary G. Little

“Walter Oney” wrote in message news:xxxxx@ntdev…
> From:
>> Old.
>
> I’m not old, I’m just thoroughly broken in :slight_smile:
>
> Heck, I’m so old I remember making program drum cards for 026 keypunches,
> submitting batch jobs on card decks, reading core dumps at midnight when
> turnaround was good, Eisenhower’s first term, 27-cent gasoline, $15,000
> houses, the Beatles on Sullivan, and much more…
>
> Walter Oney
> Consulting and Training
> www.oneysoft.com
>
>