I would just like to thank everyone for there help. I downloaded mameuifx32 and it has cured everything. I now have hlsl which was missing from my previous .ini and set it up with another users recommendation and it works a treat so a very big thankyou to you all for the help much appreciated