problem spawning actors

I maked a simple class whit a rocket mesh and a lamp that goes foward,now i would spown this istead of the yellow sphere of the fps template.
the class is named ARocket,here are the lines i changed:
character.h
SubclassOf<class ARocket> ProjectileClass;
character.cpp
World->SpawnActor<class ARocket>(ProjectileClass, SpawnLocation, SpawnRotation);

I get some errors,but the file where these errors are is class.h.
If i change back the lines to what they where everything works.

Have you included the rocket class in the ‘character’ header?
could you paste the errors?

The type you want is TSubclassOf, not SubclassOf. Is that a copy paste mistake?