enumerating Z-Buffer formats causes problems on many cards, so it was on my Elsa Victory Erazor. I had to set the format on my own and it worked on every card I checked it out. Simply set the bitdepth and pixelformat and things like that on your own and it should work.
If the DirectX-samples work, then simply copy the code from that samples and it should work without any problems.
CU
------------------
Skullpture Entertainment
#40842461