Can't attach a component to a bone

This is my c++ code, im trying to attach FPSCamera to the “Camera” socket on the mesh.

But it dosn’t show up in the parent socket. What am I doing wrong?
aRT