How do I use SetStaticMesh and SetMaterial?

for some weird reason i couldnt use “Block” as name for the staticmeshcomponent, defined in the header file. as the VS2013 compiler complained about it !? :smiley: