have a look at the examples! you will find out whats wrong. for example dcl_... -dont use this. u need a stream . and did you define matrixes and vectors before the technique? you have to do so and you have to do it in the needed way. like matrix matWorldViewProj; look into the latest manual at the very beginning there are all informations about this.