VertexShaderConstant[x]=<matrix or vector>; or ...={float,float,float,float};
this has to be placed into the pass. the matrices or vectors have to be declared just after effect="
...
and def cX,float,float,float,float only works with pixelshaders and has to be set between ps.X.X and the tex.. instructions
to see differences you may have a look for example at my bubbleshader and the fx-file that gets exported from rendermonkey.