I am afraid you'll have to convert the directx 8 code to directx 9 code... Hints on how to do this are on the Wiki page too... When using a plain text editor or SED, directly copying should have no effects on the code.
Cheers
And that job completed in ShaderCollection.zip /look at 'resources' on this page bottom/
Edit [rayp] :
I just edited this ( yes, years later ) cause i do'wanna post here / bring this Zombie back to life. But frequently saw people in "Whos online" reading in here.
Edit reason ( last but not least ) :
Nowadays i would take a look into Shade-C. Did not test the cartoon shader from Shade-C but iam pretty sure, BoH did a hammer job, as always. rayp over.
edit [rayp] end