Unfortunately the iPad version 1 doesn't support desktop mirroring using the dock adapter (I am in the same boat with my iPad)
Full desktop mirroring is on iPad 2, new iPad and iPhone 4S
Not sure about the code you've added tho... So, yeah sorry of no real help here
BReligion
__________________
"
Hell hath no fury, like a woman scorned for Sega. " - Brodie Bruce :: Mallrats ::
:: Macbook Pro 13.3" 2.66 Core 2 Duo
:: Macbook 13.3" 2.0 Core 2 Duo (the wife's)
:: iMac 17" 1.83 Core Duo
:: iBook 12" 1.33ghz (retired)
:: iPhone 4 & iPhone 2G (8GB retired); iPod 5th Gen (80GB)
:: Apple TV - 160GB, Apple TV2, Airport Exteme & Airport Express