Thanks for all your help
No problem

I gave that test prog to my firnd and cousin, they say it runs like a broken pocket watch so I can only assume your successs with it is because you are using non XP or an NT based machine.
I am running xp sp 1, on a 3ghz pc with 1gig ram and a gforce 6800gt 256mb gfx card